Skip to content

Commit

Permalink
fix(js): Avoid @babel/preset-env warning in js/babel.ts (#14772)
Browse files Browse the repository at this point in the history
  • Loading branch information
mauris authored Oct 19, 2023
1 parent 93e1e1b commit d798126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/js/babel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports = function (api: any, options: NxWebBabelPresetOptions = {}) {
: {
// Allow importing core-js in entrypoint and use browserslist to select polyfills.
useBuiltIns: options.useBuiltIns ?? 'entry',
corejs: 3,
corejs: options.useBuiltIns !== false ? 3 : null,
// Do not transform modules to CJS
modules: false,
targets: isModern ? { esmodules: 'intersect' } : undefined,
Expand Down

0 comments on commit d798126

Please sign in to comment.