diff --git a/ts/loader.ts b/ts/loader.ts index b140a1e..0c457b4 100644 --- a/ts/loader.ts +++ b/ts/loader.ts @@ -4,8 +4,9 @@ import type { CompilerOptions } from 'typescript'; const defaultTsNodeOptions: plugins.tsNode.CreateOptions = { compilerOptions: { lib: ['dom'], - target: 'es2020', // Script Target should be a string -> 2 is for ES2015 + target: 'es2022', // Script Target should be a string -> 2 is for ES2015 experimentalDecorators: true, + useDefineForClassFields: false, esModuleInterop: true, strictNullChecks: false, moduleResolution: 'node12',