diff --git a/packages/web/babel.ts b/packages/web/babel.ts index 516b2f5962e45..602b1b10c11a9 100644 --- a/packages/web/babel.ts +++ b/packages/web/babel.ts @@ -48,7 +48,7 @@ module.exports = function (api: any, options: NxWebBabelPresetOptions = {}) { corejs: 3, // Do not transform modules to CJS modules: false, - targets: isModern ? { esmodules: true } : undefined, + targets: isModern ? { esmodules: 'intersect' } : undefined, bugfixes: true, // Exclude transforms that make all code slower exclude: ['transform-typeof-symbol'],