Skip to content

Commit 4351bc0

Browse files
authored
fix: set preserveEntrySignatures for rolldown-vite (#4784)
1 parent 21fcecc commit 4351bc0

File tree

2 files changed

+83
-84
lines changed

2 files changed

+83
-84
lines changed

pnpm-lock.yaml

Lines changed: 80 additions & 78 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/node/build/bundle.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,9 @@ export async function bundle(
9898
app: path.resolve(APP_PATH, ssr ? 'ssr.js' : 'index.js'),
9999
...input
100100
},
101-
// @ts-ignore skip setting it for rolldown-vite since it doesn't support `preserveEntrySignatures` yet
102-
...(vite.rolldownVersion
103-
? undefined
104-
: // important so that each page chunk and the index export things for each
105-
// other
106-
{ preserveEntrySignatures: 'allow-extension' }),
101+
// important so that each page chunk and the index export things for each
102+
// other
103+
preserveEntrySignatures: 'allow-extension',
107104
output: {
108105
sanitizeFileName,
109106
...rollupOptions?.output,

0 commit comments

Comments
 (0)