@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 +1 -1
- package/src/exports/vite/index.js +8 -3
- package/src/version.js +1 -1
package/package.json
CHANGED
|
@@ -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