diff --git a/packages/package/src/typescript.js b/packages/package/src/typescript.js index 5163676082e3..ca203a02c658 100644 --- a/packages/package/src/typescript.js +++ b/packages/package/src/typescript.js @@ -73,7 +73,7 @@ export async function transpile_ts(filename, source) { return ts.transpileModule(source, { compilerOptions: { ...options, - module: ts.ModuleKind.ESNext, + module: ts.ModuleKind.NodeNext, moduleResolution: ts.ModuleResolutionKind.NodeNext }, fileName: filename