Skip to content

Commit

Permalink
fix: 🐛 fix decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
huruji committed Sep 5, 2020
1 parent 459cc73 commit 40ab118
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/cli/src/plugins/js-plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ const plugin: SasoPlugin = {
],
[require.resolve('@babel/plugin-syntax-dynamic-import')],
[require.resolve('@babel/plugin-syntax-import-meta')],
[require.resolve('@babel/plugin-proposal-class-properties'), { loose: false }],
[require.resolve('@babel/plugin-proposal-decorators'), { legacy: true }],
[require.resolve('@babel/plugin-proposal-class-properties'), { loose: true }],
[require.resolve('@babel/plugin-proposal-json-strings')],
[require.resolve('@babel/plugin-proposal-export-default-from')],
// es 2020
[require.resolve('@babel/plugin-proposal-nullish-coalescing-operator')],
[require.resolve('@babel/plugin-proposal-optional-chaining')],
[
require.resolve('@babel/plugin-proposal-private-methods'), { loose: false },
require.resolve('@babel/plugin-proposal-private-methods'), { loose: true },
],
[require.resolve('@babel/plugin-syntax-bigint')],
[require.resolve('@babel/plugin-proposal-decorators'), { legacy: true }]
]

const prodPlugins = [
Expand Down

0 comments on commit 40ab118

Please sign in to comment.