-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable Babel modules transform for dependencies (#455)
The Babel modules transform turns top level `this` into undefined. This causes issues with some libraries that expect `this` to refer to the global object (or at least expect it to exist). See #423 for an example. Because browserify looks for the package.json `main` key, which should not contain ES modules code, it should be safe to just disable the modules transform.
- Loading branch information
1 parent
a4306c5
commit cee3689
Showing
2 changed files
with
44 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters