fix(js): Respect loose option provided from config (#23406)
closes: #21937
This commit is contained in:
parent
425d442d44
commit
efdfb694f2
@ -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),
|
||||
],
|
||||
[
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user