-
Notifications
You must be signed in to change notification settings - Fork 1
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
Plugin doesn't work with option bundleExternal = false #7
Comments
Hello @unlight! Thank you for the report, I'll check it out. |
@unlight So, .plugin(pathmodify, {mods: [
// Note that the before value, `app`, doesn't begin with `/` or `.`
pathmodify.mod.dir("app", "/somedir")
]}) Browserify / module-deps apply that filter before pathmodify gets the value. One way to overcome that would be to pretend you're requiring an absolute path, e.g.: // Not this
require("app/whatever");
// This
require("/app/whatever"); Then of course: .plugin(pathmodify, {mods: [
pathmodify.mod.dir("/app", "/somedir")
]}) If that doesn't explain the issue you're seeing, please create a repo with a minimal reproduction I can run to see what's happening. If you need help getting started, please see this: https://github.com/miniminirepro/browserify. Thanks! |
Thanks for explaination. I'm trying to avoid '../../..' by replacing |
@unlight Ah, ok, so on Windows this is the test: I've considered the idea of making an option / version of this that would work as a transform. In that case |
Subj.
I don't know is expected or not.
The text was updated successfully, but these errors were encountered: