-
-
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
--insert-globals option doesn't work #655
Comments
Also, this issue is obscuring issues related to |
What if you run
That probably should be fixed though. |
Then it becomes I agree that it should be |
In v5 --insert-globals is a boolean option so this issue should be fixed. |
This issue doesn't break anything because globals are inserted anyway if they are found in source code. Also, detecting globals are now very fast thanks to
mine
.However, cli's
--insert-globals
option doesn't seem to be working. It fails as follows:browserify --insert-globals=true foo.js
bundle()
'sinsertGlobals
option becomes a string"true"
.insert-module-globals
module gets the string"true"
asalways
option."true"
against the booleantrue
and doesn't insert globals.https://github.com/substack/insert-module-globals/blob/34e5fb7167b858b13ffcc2c73a7827045f2e478e/index.js#L57
This kind of issues can happen to other options too. I couldn't figure out where the right place to fix is, so just opening this issue.
The text was updated successfully, but these errors were encountered: