Browse Source

build(ui): Remove babel properties, add allowDeclareFields (#65115)

Scott Cooper 1 year ago
parent
commit
4e36ce8239
1 changed files with 3 additions and 6 deletions
  1. 3 6
      babel.config.ts

+ 3 - 6
babel.config.ts

@@ -18,14 +18,11 @@ const config: TransformOptions = {
         corejs: '3.27',
       },
     ],
-    '@babel/preset-typescript',
+    // TODO: Remove allowDeclareFields when we upgrade to Babel 8
+    ['@babel/preset-typescript', {allowDeclareFields: true}],
   ],
   overrides: [],
-  plugins: [
-    '@emotion/babel-plugin',
-    '@babel/plugin-transform-runtime',
-    '@babel/plugin-transform-class-properties',
-  ],
+  plugins: ['@emotion/babel-plugin', '@babel/plugin-transform-runtime'],
   env: {
     production: {
       plugins: [