Skip to content

Commit 1c1f81f

Browse files
committed
fix: do not inline chunks into entry points
Vite will try to minimize the number of chunks to increase performance, but this will inline chunks in the entry point and thus adding exports that can be imported by other modules causing the entry point to be re-evaluated. So we need to disabled this until fixed in server: - ref: nextcloud/server#56941 Signed-off-by: Ferdinand Thiessen <[email protected]>
1 parent 00c8825 commit 1c1f81f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

vite.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,12 @@ export default createAppConfig({
1818
extractLicenseInformation: {
1919
includeSourceMaps: true,
2020
},
21+
config: {
22+
build: {
23+
rollupOptions: {
24+
// TODO: Remove when merged https://github.com/nextcloud/server/pull/56941
25+
preserveEntrySignatures: 'strict',
26+
},
27+
},
28+
},
2129
})

0 commit comments

Comments
 (0)