Skip to content

[Resolve problem] Deal with absolute path #66

@tups-ibl

Description

@tups-ibl

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 + "')"; }); }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions