Skip to content

Update the JSDoc of configureBabel to warn about .babelrc and node_modules #788

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

Merged
merged 1 commit into from
Jul 31, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -931,14 +931,19 @@ class Encore {
* determines which files and folders should not be
* processed by Babel (https://webpack.js.org/configuration/module/#condition).
* Can be used even if you have an external Babel configuration
* (a .babelrc file for instance)
* (a babel.config.json file for instance)
* Warning: .babelrc config files don't apply to node_modules. Use
* babel.config.json instead to apply the same config to modules if
* they are not excluded anymore.
* Cannot be used if the "includeNodeModules" option is
* also set.
* * {string[]} includeNodeModules
* If set that option will include the given Node modules to
* the files that are processed by Babel.
* Can be used even if you have an external Babel configuration
* (a .babelrc file for instance).
* (a babel.config.json file for instance).
* Warning: .babelrc config files don't apply to node_modules. Use
* babel.config.json instead to apply the same config to these modules.
* Cannot be used if the "exclude" option is also set
* * {'usage'|'entry'|false} useBuiltIns (default=false)
* Set the "useBuiltIns" option of @babel/preset-env that changes
Expand Down