Skip to content

Commit

Permalink
fix: when using the legacy: true option of @babel/plugin-proposal-d…
Browse files Browse the repository at this point in the history
…ecorators, @babel/plugin-proposal-class-properties must be used in `loose: true` mode
  • Loading branch information
Cheton Wu authored and cheton committed Oct 28, 2021
1 parent 0a6973b commit e7caf72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ module.exports = function(api) {
// Stage 3
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-syntax-import-meta',
['@babel/plugin-proposal-class-properties', { 'loose': false }],
'@babel/plugin-proposal-json-strings'
['@babel/plugin-proposal-class-properties', { 'loose': true }],
'@babel/plugin-proposal-json-strings',
]
};
};

0 comments on commit e7caf72

Please sign in to comment.