From 9b4bfd495b046c7212ca713f952dfdffaca399e0 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 1 Aug 2024 09:50:45 +0100 Subject: [PATCH] Upgrade to es2022 Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- babel.config.js | 3 ++- tsconfig.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/babel.config.js b/babel.config.js index 93920120c6..9c56c45d15 100644 --- a/babel.config.js +++ b/babel.config.js @@ -10,9 +10,10 @@ module.exports = { "last 2 Safari versions", "last 2 Edge versions", ], + include: ["@babel/plugin-transform-class-properties"], }, ], - "@babel/preset-typescript", + ["@babel/preset-typescript", { allowDeclareFields: true }], "@babel/preset-react", ], plugins: [ diff --git a/tsconfig.json b/tsconfig.json index f7ace546eb..bb2e3107ce 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,9 +4,10 @@ "emitDecoratorMetadata": false, "resolveJsonModule": true, "esModuleInterop": true, + "useDefineForClassFields": true, "module": "es2022", "moduleResolution": "node", - "target": "es2021", + "target": "es2022", "noUnusedLocals": true, "sourceMap": false, "outDir": "./lib",