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

Names for modules in subfolders use wrong slashes on windows #20

Open
AmyAmy opened this issue Jul 7, 2016 · 0 comments
Open

Names for modules in subfolders use wrong slashes on windows #20

AmyAmy opened this issue Jul 7, 2016 · 0 comments

Comments

@AmyAmy
Copy link

AmyAmy commented Jul 7, 2016

generates the following name: define("components\new\file"
should be define("components/new/file",

seems like an easy fix

moduleName = moduleName.replace(/\\/g, "/");
after the
var moduleName = path.join(path.dirname(filepath), path.basename(filepath,extension));
seems to do the trick, not sure if that's the proper way to do that tho

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

No branches or pull requests

1 participant