Skip to content

Commit

Permalink
Fixed issue with cross package references
Browse files Browse the repository at this point in the history
  • Loading branch information
okaycj committed Aug 21, 2024
1 parent f8c8aad commit 8e0c636
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions rollup.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,16 @@ export function makeRollupConfig(iifeName) {
...config,
// Add data package as external dependency
external: [...config.external, dataPackageName],
output: config.output
// Only build iife bundles
.filter((output) => output.format === "iife")
.map((output) => {
return {
...output,
globals: {
...output.globals,
// Explicitly state data's iife name
[dataPackageName]: iifeNameData,
},
};
}),
output: config.output.map((output) => {
return {
...output,
globals: {
...output.globals,
// Explicitly state data's iife name
[dataPackageName]: iifeNameData,
},
};
}),
};
});
}

0 comments on commit 8e0c636

Please sign in to comment.