diff --git a/config/babel.js b/config/babel.js index 950e3f716d..7bc97d51d5 100644 --- a/config/babel.js +++ b/config/babel.js @@ -22,7 +22,7 @@ module.exports.babelLoaderConfig = ({ latestBuild }) => { ], // Used for decorators in typescript ["@babel/plugin-proposal-decorators", { legacy: true }], - "@babel/plugin-proposal-class-properties", + ["@babel/plugin-proposal-class-properties", { loose: true }], // Only support the syntax, Webpack will handle it. "@babel/syntax-dynamic-import", [