chore: use loose mode of transform (#10718)

This commit is contained in:
Huáng Jùnliàng 2019-11-15 11:48:37 -05:00 committed by Brian Ng
parent b4c42601d1
commit 5bb4ee73da

View File

@ -77,8 +77,8 @@ module.exports = function(api) {
"@babel/proposal-object-rest-spread",
{ useBuiltIns: true, loose: true },
],
"@babel/plugin-proposal-optional-chaining",
"@babel/plugin-proposal-nullish-coalescing-operator",
["@babel/plugin-proposal-optional-chaining", { loose: true }],
["@babel/plugin-proposal-nullish-coalescing-operator", { loose: true }],
convertESM ? "@babel/transform-modules-commonjs" : null,
].filter(Boolean),