-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
.require() with expose: true use backslashes on Windows #1358
Comments
Probably it would be also a good idea to sanitice this way all the paths to be sure they are only using slashes and not backslashes... |
Taking a look on the code, I suspect the problem is at this path.resolve(). I don't have a Windows machine here to try it, though :-( |
This issue is currently preventing me upgrading from a fairly old version of Browserify, so I'd be great to see it resolved. Hope the PR helps. |
Should be fixed in 12.0.2. |
this issue is still exist in windows for external dependencies section. Could anyone please help me how to resolve that.. |
When using .require() method on Windows with the
expose:true
flag, the IDs are being generated with backslashes, like/apps\\Call
instead of/apps/Call
, so later they can't be found whenrequire()
ing them because they are not found. I think this is somewhat related to https://github.com/substack/node-browserify/pull/503/files and https://github.com/substack/node-browserify/pull/1096/files and probably the fix would be the same, just replace the backslashes previously to set the path at the browserify output.The text was updated successfully, but these errors were encountered: