@sveltejs/kit 1.0.0-next.345 → 1.0.0-next.346
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/assets/client/start.js +6 -0
- package/assets/server/index.js +1 -4
- package/dist/chunks/index.js +1260 -456
- package/dist/chunks/index2.js +88 -1361
- package/dist/chunks/index3.js +165 -99
- package/dist/chunks/index4.js +227 -147
- package/dist/chunks/index5.js +15690 -202
- package/dist/chunks/plugin.js +538 -0
- package/dist/chunks/sync.js +4 -3
- package/dist/cli.js +73 -35
- package/package.json +2 -2
- package/types/private.d.ts +2 -2
- package/dist/chunks/index6.js +0 -15749
package/assets/client/start.js
CHANGED
|
@@ -1398,6 +1398,12 @@ function create_client({ target, session, base, trailing_slash }) {
|
|
|
1398
1398
|
return new Promise(() => {});
|
|
1399
1399
|
}
|
|
1400
1400
|
|
|
1401
|
+
if (import.meta.hot) {
|
|
1402
|
+
import.meta.hot.on('vite:beforeUpdate', () => {
|
|
1403
|
+
if (current.error) location.reload();
|
|
1404
|
+
});
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1401
1407
|
return {
|
|
1402
1408
|
after_navigate: (fn) => {
|
|
1403
1409
|
onMount(() => {
|
package/assets/server/index.js
CHANGED
|
@@ -2231,10 +2231,7 @@ async function load_node({
|
|
|
2231
2231
|
}
|
|
2232
2232
|
|
|
2233
2233
|
response = await respond(
|
|
2234
|
-
|
|
2235
|
-
// (https://github.com/sveltejs/kit/issues/3728) — which is fine, because
|
|
2236
|
-
// we only need the headers
|
|
2237
|
-
new Request(new URL(requested, event.url).href, { ...opts, credentials: undefined }),
|
|
2234
|
+
new Request(new URL(requested, event.url).href, { ...opts }),
|
|
2238
2235
|
options,
|
|
2239
2236
|
{
|
|
2240
2237
|
...state,
|