Skip to content

Commit

Permalink
Address rollup cjs issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiancook committed Oct 15, 2024
1 parent b792fbb commit 82b8d91
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
10 changes: 10 additions & 0 deletions example/polyfill-rollup.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions example/routes-rollup.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 8 additions & 13 deletions scripts/post-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,10 @@ const cwd = resolve(dirname(pathname), "..")
});
await bundle.write({
sourcemap: true,
output: {
file: "./esnext/tests/rollup.js",
},
file: "./esnext/tests/rollup.js",
inlineDynamicImports: true,
format: "cjs",
interop: "auto",
format: "es",
interop: "esModule",
globals: {
"esnext/tests/navigation.playwright.js": "globalThis"
}
Expand Down Expand Up @@ -100,9 +98,7 @@ const cwd = resolve(dirname(pathname), "..")
});
await bundle.write({
sourcemap: true,
output: {
file: "./esnext/routes-rollup.js",
},
file: "./esnext/routes-rollup.js",
inlineDynamicImports: true,
format: "esm",
interop: "auto",
Expand Down Expand Up @@ -137,15 +133,14 @@ const cwd = resolve(dirname(pathname), "..")
});
await bundle.write({
sourcemap: true,
output: {
file: "./esnext/polyfill-rollup.js",
},
file: "./esnext/polyfill-rollup.js",
inlineDynamicImports: true,
format: "cjs",
interop: "auto",
interop: "esModule",
globals: {

}
},
exports: "auto"
});
}

Expand Down

0 comments on commit 82b8d91

Please sign in to comment.