From 89c5fea1b892f857afe0218d2804cd46327bb557 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 24 Oct 2024 20:26:32 -0700 Subject: [PATCH] tsconfig: Set useDefineForClassFields We rely on this in Source right now --- rspack.config.ts | 3 +++ tsconfig.json | 1 + 2 files changed, 4 insertions(+) diff --git a/rspack.config.ts b/rspack.config.ts index 775e35e55..8d8abfccc 100644 --- a/rspack.config.ts +++ b/rspack.config.ts @@ -44,6 +44,9 @@ const config: rspack.Configuration = { syntax: 'typescript', decorators: true, }, + transform: { + useDefineForClassFields: false, + }, externalHelpers: true, }, env: { targets }, diff --git a/tsconfig.json b/tsconfig.json index 1217f044b..4a731ffe3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,6 +13,7 @@ "strictFunctionTypes": true, "strictNullChecks": true, "useUnknownInCatchVariables": true, + "useDefineForClassFields": false, "resolveJsonModule": true, "lib": [ "es2017",