Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,12 @@ export default ({ mode }: { mode: string }) => {
// seamless "vr is not defined" crash). Match "weather-map-layer" so it also
// covers the symlink-resolved real path used during local `npm link` dev,
// not just the installed "@openmeteo/weather-map-layer" node_modules path.
manualChunks: (id: string) =>
id.includes('weather-map-layer') ? 'weather-map-layer' : undefined
// This is a codeSplitting group, not manualChunks: SvelteKit sets its own
// codeSplitting groups on the client build, which these are merged into,
// whereas rolldown ignores manualChunks once codeSplitting is set.
codeSplitting: {
groups: [{ name: 'weather-map-layer', test: /weather-map-layer/ }]
}
}
}
}
Expand Down
Loading