Skip to content

Commit c910eec

Browse files
committed
add loose option
1 parent a26f938 commit c910eec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/rollup.plugins.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function babelPlugin({ transpileToES5, allowConsole = false, allowPostMes
4646
],
4747
plugins: [
4848
['@babel/plugin-proposal-object-rest-spread'],
49-
['@babel/proposal-class-properties'],
49+
['@babel/proposal-class-properties', {loose: !transpileToES5}],
5050
[
5151
'babel-plugin-minify-replace',
5252
{

0 commit comments

Comments
 (0)