diff --git a/.babelrc.js b/.babelrc.js index 6b89479192..90ba70708f 100644 --- a/.babelrc.js +++ b/.babelrc.js @@ -3,8 +3,4 @@ module.exports = { '@babel/env', '@babel/typescript', ], - plugins: [ - "@babel/proposal-object-rest-spread", - "@babel/proposal-class-properties" - ] }; \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index a818cb7c14..03e759c78d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,9 +1,10 @@ { "compilerOptions": { - "module": "commonjs", + "allowSyntheticDefaultImports": true, + "module": "ES2022", "esModuleInterop": true, - "target": "es2018", - "lib": ["es2018"], + "target": "ES2022", + "lib": ["ES2022"], "noImplicitAny": true, "noImplicitThis": true, "moduleResolution": "node",