mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-25 18:50:56 +02:00
CODEBASE: Use "esnext" target when transforming code with swc (#1810)
This commit is contained in:
@@ -152,7 +152,8 @@ export function transformScript(code: string, fileType: FileType): string | null
|
||||
return transformSync(code, {
|
||||
jsc: {
|
||||
parser: parserConfig,
|
||||
target: "es2020",
|
||||
// @ts-expect-error -- jsc supports "esnext" target, but the definition in wasm-web.d.ts is outdated. Ref: https://github.com/swc-project/swc/issues/9495
|
||||
target: "esnext",
|
||||
},
|
||||
}).code;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user