Skip to content

Commit

Permalink
fix bundle export names
Browse files Browse the repository at this point in the history
  • Loading branch information
timreichen committed Oct 11, 2020
1 parent 60168db commit 10ac5e5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bundler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
import type { Plugin } from "./plugins/plugin.ts";
import type { Loader } from "./plugins/loader.ts";
import {
createGraph,
create as createGraph,
FileMap,
getOutput,
getSource,
Expand Down Expand Up @@ -175,7 +175,9 @@ export async function bundle(

if (bundleNeedsUpdate) {
strings.push(createInstantiateString(output));
strings.push(createSystemExports(Object.keys(entry.exports)));
for (const exports of Object.values(entry.exports)) {
strings.push(createSystemExports(exports));
}

let string = strings.join("\n");

Expand Down

0 comments on commit 10ac5e5

Please sign in to comment.