Skip to content

Commit

Permalink
fix(rollup): avoid preserving relative externals (#1972)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Nov 30, 2023
1 parent bebf54e commit cbb44d5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions src/rollup/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ export const getRollupConfig = (nitro: Nitro): RollupConfig => {
},
},
external: env.external,
// https://github.com/rollup/rollup/pull/4021#issuecomment-809985618
makeAbsoluteExternalsRelative: false,
plugins: [],
onwarn(warning, rollupWarn) {
if (
Expand Down
1 change: 1 addition & 0 deletions test/fixture/routes/wasm/dynamic.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export default defineLazyEventHandler(async () => {
const { sum } = await importWasm(import("~/wasm/sum.wasm" as string));
// const { sum } = await importWasm(import("../../wasm/sum.wasm" as string));
return eventHandler(() => {
return `2+3=${sum(2, 3)}`;
});
Expand Down

0 comments on commit cbb44d5

Please sign in to comment.