@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/kit",
3
- "version": "2.42.0",
3
+ "version": "2.42.1",
4
4
  "description": "SvelteKit is the fastest way to build Svelte apps",
5
5
  "keywords": [
6
6
  "framework",
@@ -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
@@ -1,4 +1,4 @@
1
1
  // generated during release, do not modify
2
2
 
3
3
  /** @type {string} */
4
- export const VERSION = '2.42.0';
4
+ export const VERSION = '2.42.1';