@sveltejs/kit 2.42.0 → 2.42.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/exports/vite/index.js +4 -0
- package/src/version.js +1 -1
package/package.json
CHANGED
|
@@ -682,9 +682,13 @@ async function kit({ svelte_config }) {
|
|
|
682
682
|
config.build.rollupOptions.output = {
|
|
683
683
|
...config.build.rollupOptions.output,
|
|
684
684
|
manualChunks(id, meta) {
|
|
685
|
+
// Prevent core runtime and env from ending up in a remote chunk, which could break because of initialization order
|
|
685
686
|
if (id === `${runtime_directory}/app/server/index.js`) {
|
|
686
687
|
return 'app-server';
|
|
687
688
|
}
|
|
689
|
+
if (id === `${runtime_directory}/shared-server.js`) {
|
|
690
|
+
return 'app-shared-server';
|
|
691
|
+
}
|
|
688
692
|
|
|
689
693
|
// Check if this is a *.remote.ts file
|
|
690
694
|
if (svelte_config.kit.moduleExtensions.some((ext) => id.endsWith(`.remote${ext}`))) {
|
package/src/version.js
CHANGED