Skip to content

Commit

Permalink
fix(js): Respect loose option provided from config
Browse files Browse the repository at this point in the history
closes: #21937
  • Loading branch information
ndcunningham committed May 15, 2024
1 parent 425d442 commit 9d0941e
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 @@ -54,7 +54,7 @@ module.exports = function (api: any, options: NxWebBabelPresetOptions = {}) {
// All other options will fail in Jest since Node does not support some ES features
// such as import syntax.
isTest || process.env.NODE_ENV === 'test' || process.env.JEST_WORKER_ID
? { targets: { node: 'current' }, loose: true }
? { targets: { node: 'current' }, loose }
: createBabelPresetEnvOptions(options.useBuiltIns, isModern, loose),
],
[
Expand Down

0 comments on commit 9d0941e

Please sign in to comment.