cli: switch node transform type target es2022 and typescript

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-03-18 09:46:24 +01:00
parent 1bd4596c99
commit 1bc13fc329
+6
View File
@@ -23,6 +23,12 @@ addHook(
filename,
sourceMaps: 'inline',
module: { type: 'commonjs' },
jsc: {
target: 'es2022',
parser: {
syntax: 'typescript',
},
},
});
process.send?.({ type: 'watch', path: filename });
return transformed.code;