From 661d7124d6c3c8d45897efc507416a0f87f6bba6 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Fri, 1 Dec 2023 15:14:16 -0800 Subject: [PATCH] NodeNext module for libraries --- packages/package/src/typescript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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