@sveltejs/kit 1.0.0-next.396 → 1.0.0-next.397
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/dist/chunks/write_tsconfig.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/vite.js +5 -5
- package/package.json +1 -1
|
@@ -149,7 +149,7 @@ function write_tsconfig(config, cwd = process.cwd()) {
|
|
|
149
149
|
|
|
150
150
|
// This is required for svelte-kit package to work as expected
|
|
151
151
|
// Can be overwritten
|
|
152
|
-
lib: ['esnext', 'DOM'],
|
|
152
|
+
lib: ['esnext', 'DOM', 'DOM.Iterable'],
|
|
153
153
|
moduleResolution: 'node',
|
|
154
154
|
module: 'esnext',
|
|
155
155
|
target: 'esnext'
|
package/dist/cli.js
CHANGED
package/dist/vite.js
CHANGED
|
@@ -1478,11 +1478,6 @@ async function dev(vite, vite_config, svelte_config, illegal_imports) {
|
|
|
1478
1478
|
);
|
|
1479
1479
|
}
|
|
1480
1480
|
|
|
1481
|
-
/** @type {Partial<import('types').Hooks>} */
|
|
1482
|
-
const user_hooks = resolve_entry(svelte_config.kit.files.hooks)
|
|
1483
|
-
? await vite.ssrLoadModule(`/${svelte_config.kit.files.hooks}`)
|
|
1484
|
-
: {};
|
|
1485
|
-
|
|
1486
1481
|
const runtime_base = true
|
|
1487
1482
|
? `/${posixify(path__default.relative(cwd$1, `${svelte_config.kit.outDir}/runtime`))}`
|
|
1488
1483
|
: `/@fs${runtime}`;
|
|
@@ -1494,6 +1489,11 @@ async function dev(vite, vite_config, svelte_config, illegal_imports) {
|
|
|
1494
1489
|
set_private_env(env.private);
|
|
1495
1490
|
set_public_env(env.public);
|
|
1496
1491
|
|
|
1492
|
+
/** @type {Partial<import('types').Hooks>} */
|
|
1493
|
+
const user_hooks = resolve_entry(svelte_config.kit.files.hooks)
|
|
1494
|
+
? await vite.ssrLoadModule(`/${svelte_config.kit.files.hooks}`)
|
|
1495
|
+
: {};
|
|
1496
|
+
|
|
1497
1497
|
const handle = user_hooks.handle || (({ event, resolve }) => resolve(event));
|
|
1498
1498
|
|
|
1499
1499
|
/** @type {import('types').Hooks} */
|