Skip to content

Commit

Permalink
tsconfig: Set useDefineForClassFields
Browse files Browse the repository at this point in the history
We rely on this in Source right now
  • Loading branch information
magcius committed Oct 25, 2024
1 parent 51248af commit 89c5fea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rspack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ const config: rspack.Configuration = {
syntax: 'typescript',
decorators: true,
},
transform: {
useDefineForClassFields: false,
},
externalHelpers: true,
},
env: { targets },
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"strictFunctionTypes": true,
"strictNullChecks": true,
"useUnknownInCatchVariables": true,
"useDefineForClassFields": false,
"resolveJsonModule": true,
"lib": [
"es2017",
Expand Down

0 comments on commit 89c5fea

Please sign in to comment.