Skip to content

Commit

Permalink
Honour browserslist on libraries using babel (nrwl#14065)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianldgs authored Jan 9, 2023
1 parent c728839 commit 716ba89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web/babel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit 716ba89

Please sign in to comment.