fix(js): Avoid @babel/preset-env warning in js/babel.ts (#14772)
This commit is contained in:
parent
93e1e1b67e
commit
d798126e73
@ -57,7 +57,7 @@ module.exports = function (api: any, options: NxWebBabelPresetOptions = {}) {
|
|||||||
: {
|
: {
|
||||||
// Allow importing core-js in entrypoint and use browserslist to select polyfills.
|
// Allow importing core-js in entrypoint and use browserslist to select polyfills.
|
||||||
useBuiltIns: options.useBuiltIns ?? 'entry',
|
useBuiltIns: options.useBuiltIns ?? 'entry',
|
||||||
corejs: 3,
|
corejs: options.useBuiltIns !== false ? 3 : null,
|
||||||
// Do not transform modules to CJS
|
// Do not transform modules to CJS
|
||||||
modules: false,
|
modules: false,
|
||||||
targets: isModern ? { esmodules: 'intersect' } : undefined,
|
targets: isModern ? { esmodules: 'intersect' } : undefined,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user