From cd3bbc3894f0a5e1a90405453921ee27af5c0280 Mon Sep 17 00:00:00 2001 From: sayomaki Date: Mon, 1 Apr 2024 07:35:43 +0800 Subject: [PATCH] Fix imports not being carried over from prelude (#1625) --- src/transpiler/transpiler.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/transpiler/transpiler.ts b/src/transpiler/transpiler.ts index f916218b7..7dda39a28 100644 --- a/src/transpiler/transpiler.ts +++ b/src/transpiler/transpiler.ts @@ -588,6 +588,7 @@ async function transpileToFullJS( globalIds.native ) + program.body = (importNodes as es.Program['body']).concat(otherNodes) getFunctionDeclarationNamesInProgram(program).forEach(id => context.nativeStorage.previousProgramsIdentifiers.add(id) )