Skip to content

Commit

Permalink
Fix imports not being carried over from prelude (#1625)
Browse files Browse the repository at this point in the history
  • Loading branch information
sayomaki authored Mar 31, 2024
1 parent 4dc8671 commit cd3bbc3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/transpiler/transpiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
Expand Down

0 comments on commit cd3bbc3

Please sign in to comment.