@sveltejs/kit 2.22.0 → 2.22.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 +1 -13
- package/src/runtime/client/client.js +3 -3
- package/src/version.js +1 -1
package/package.json
CHANGED
|
@@ -695,6 +695,7 @@ Tips:
|
|
|
695
695
|
assetFileNames: `${prefix}/assets/[name].[hash][extname]`,
|
|
696
696
|
hoistTransitiveImports: false,
|
|
697
697
|
sourcemapIgnoreList,
|
|
698
|
+
manualChunks: split ? undefined : () => 'bundle',
|
|
698
699
|
inlineDynamicImports: false
|
|
699
700
|
},
|
|
700
701
|
preserveEntrySignatures: 'strict',
|
|
@@ -734,19 +735,6 @@ Tips:
|
|
|
734
735
|
// enableNativePlugin: true
|
|
735
736
|
// }
|
|
736
737
|
};
|
|
737
|
-
|
|
738
|
-
if (!split && new_config.build?.rollupOptions?.output) {
|
|
739
|
-
const output_options = /** @type {import('vite').Rollup.OutputOptions} */ (
|
|
740
|
-
new_config.build.rollupOptions.output
|
|
741
|
-
);
|
|
742
|
-
// @ts-expect-error `vite.rolldownVersion` only exists in `rolldown-vite`
|
|
743
|
-
if (vite.rolldownVersion) {
|
|
744
|
-
output_options.inlineDynamicImports = true;
|
|
745
|
-
} else {
|
|
746
|
-
/** @type {import('rollup').OutputOptions} */ (output_options).manualChunks = () =>
|
|
747
|
-
'bundle';
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
738
|
} else {
|
|
751
739
|
new_config = {
|
|
752
740
|
appType: 'custom',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BROWSER, DEV } from 'esm-env';
|
|
2
|
-
import { onMount, tick } from 'svelte';
|
|
2
|
+
import { onMount, tick, untrack } from 'svelte';
|
|
3
3
|
import {
|
|
4
4
|
decode_params,
|
|
5
5
|
decode_pathname,
|
|
@@ -2111,7 +2111,7 @@ export function pushState(url, state) {
|
|
|
2111
2111
|
page.state = state;
|
|
2112
2112
|
root.$set({
|
|
2113
2113
|
// we need to assign a new page object so that subscribers are correctly notified
|
|
2114
|
-
page: clone_page(page)
|
|
2114
|
+
page: untrack(() => clone_page(page))
|
|
2115
2115
|
});
|
|
2116
2116
|
|
|
2117
2117
|
clear_onward_history(current_history_index, current_navigation_index);
|
|
@@ -2154,7 +2154,7 @@ export function replaceState(url, state) {
|
|
|
2154
2154
|
|
|
2155
2155
|
page.state = state;
|
|
2156
2156
|
root.$set({
|
|
2157
|
-
page: clone_page(page)
|
|
2157
|
+
page: untrack(() => clone_page(page))
|
|
2158
2158
|
});
|
|
2159
2159
|
}
|
|
2160
2160
|
|
package/src/version.js
CHANGED