Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Resolve problem] Deal with absolute path #66

Open
tups-ibl opened this issue Apr 25, 2017 · 0 comments · May be fixed by #77
Open

[Resolve problem] Deal with absolute path #66

tups-ibl opened this issue Apr 25, 2017 · 0 comments · May be fixed by #77

Comments

@tups-ibl
Copy link

Hello sir, I have seen that problem in #21 and #20, to deal with it, can you make an option to decide the path is either absolute or relative? For example:
function replaceStringsWithRequires(string, option) { return string.replace(stringRegex, function (match, quote, url) { if (url.charAt(0) !== "." && !option) { url = "./" + url; } return "require('" + url + "')"; }); }

@WiseBird WiseBird linked a pull request Sep 19, 2017 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant