Skip to content

Commit

Permalink
fix: 🐛loose => false
Browse files Browse the repository at this point in the history
  • Loading branch information
huruji committed Aug 13, 2020
1 parent 3afaf82 commit 8f16d9d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/cli/src/plugins/js-plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const plugin: SasoPlugin = {
[require.resolve('@babel/plugin-proposal-nullish-coalescing-operator')],
[require.resolve('@babel/plugin-proposal-optional-chaining')],
[
require.resolve('@babel/plugin-proposal-private-methods'), { loose: true },
require.resolve('@babel/plugin-proposal-private-methods'), { loose: false },
],
[require.resolve('@babel/plugin-syntax-bigint')],
[require.resolve('@babel/plugin-proposal-decorators'), { legacy: true }]
Expand Down Expand Up @@ -84,6 +84,13 @@ const plugin: SasoPlugin = {
.loader(require.resolve('babel-loader'))
.options({
presets: [
[
require.resolve('@babel/preset-env'),
{
useBuiltIns: false,
modules: false
}
],
[
require.resolve('@babel/preset-typescript'),
{
Expand All @@ -92,13 +99,6 @@ const plugin: SasoPlugin = {
jsxPragma: jsxConfig.pragma.split('.')[0]
}
],
[
require.resolve('@babel/preset-env'),
{
useBuiltIns: false,
modules: false
}
]
],
plugins: sasoConfig.mode === 'development' ? jsPlugins : jsPlugins.concat(prodPlugins),
cacheDirectory: true
Expand Down

0 comments on commit 8f16d9d

Please sign in to comment.