@sveltejs/kit 2.53.3 → 2.53.4

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.53.3",
3
+ "version": "2.53.4",
4
4
  "description": "SvelteKit is the fastest way to build Svelte apps",
5
5
  "keywords": [
6
6
  "framework",
@@ -932,9 +932,7 @@ async function kit({ svelte_config }) {
932
932
  assetFileNames: `${prefix}/assets/[name].[hash][extname]`,
933
933
  hoistTransitiveImports: false,
934
934
  sourcemapIgnoreList,
935
- inlineDynamicImports: is_rolldown ? undefined : !split,
936
- // @ts-ignore: only available in Vite 8
937
- codeSplitting: is_rolldown ? split : undefined
935
+ inlineDynamicImports: is_rolldown ? undefined : !split
938
936
  },
939
937
  preserveEntrySignatures: 'strict',
940
938
  onwarn(warning, handler) {
@@ -967,6 +965,13 @@ async function kit({ svelte_config }) {
967
965
  }
968
966
  }
969
967
  };
968
+
969
+ // we must reference Vite 8 options conditionally. Otherwise, older Vite
970
+ // versions throw an error about unknown config options
971
+ if (is_rolldown && new_config?.build?.rollupOptions?.output) {
972
+ // @ts-ignore only available in Vite 8
973
+ new_config.build.rollupOptions.output.codeSplitting = split;
974
+ }
970
975
  } else {
971
976
  new_config = {
972
977
  appType: 'custom',
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.53.3';
4
+ export const VERSION = '2.53.4';