-
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #401 Allow to configure the JS exclude rules through configur…
…eBabel (Lyrkan) This PR was squashed before being merged into the master branch (closes #401). Discussion ---------- Allow to configure the JS exclude rules through configureBabel This PR closes #342 by allowing to configure the js/jsx loaders' exclude rule by using `configureBabel()`. For instance: ```js Encore.configureBabel( () => {}, { exclude: /foo/ } ); ``` Note that it doesn't change the default behavior that excludes `node_modules` and `bower_components`. **Edit:** Also adds an `include_node_modules` option to use the default `exclude` rule but only include some Node modules (can't be used if the `exclude` option is also set): ```js Encore.configureBabel( () => {}, { include_node_modules: ['foo', 'bar', 'baz'] } ); ``` Commits ------- a07238c Add an example of calling configureBabel with the "include_node_modules" option 714a732 Add "include_node_modules" option to configureBabel 6c8f073 Allow to configure the JS exclude rules through configureBabel
- Loading branch information
Showing
5 changed files
with
159 additions
and
4 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
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
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