@sveltejs/kit 1.0.0-next.203 → 1.0.0-next.204
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/index.js +1 -1
- package/dist/chunks/index2.js +6 -4
- package/dist/cli.js +2 -2
- package/package.json +1 -1
package/dist/chunks/index.js
CHANGED
|
@@ -4358,7 +4358,6 @@ class Watcher extends EventEmitter {
|
|
|
4358
4358
|
}
|
|
4359
4359
|
|
|
4360
4360
|
this.vite = await vite.createServer(merged_config);
|
|
4361
|
-
remove_html_middlewares(this.vite.middlewares);
|
|
4362
4361
|
await this.vite.listen(this.port);
|
|
4363
4362
|
}
|
|
4364
4363
|
|
|
@@ -4714,6 +4713,7 @@ async function create_plugin(config, dir, cwd, get_manifest) {
|
|
|
4714
4713
|
*/
|
|
4715
4714
|
configureServer(vite) {
|
|
4716
4715
|
return () => {
|
|
4716
|
+
remove_html_middlewares(vite.middlewares);
|
|
4717
4717
|
vite.middlewares.use(create_kit_middleware(vite));
|
|
4718
4718
|
};
|
|
4719
4719
|
}
|
package/dist/chunks/index2.js
CHANGED
|
@@ -212,11 +212,13 @@ function generate_app(manifest_data) {
|
|
|
212
212
|
|
|
213
213
|
while (l--) {
|
|
214
214
|
pyramid = `
|
|
215
|
-
|
|
216
|
-
{
|
|
215
|
+
{#if components[${l + 1}]}
|
|
216
|
+
<svelte:component this={components[${l}]} {...(props_${l} || {})}>
|
|
217
217
|
${pyramid.replace(/\n/g, '\n\t\t\t\t\t')}
|
|
218
|
-
|
|
219
|
-
|
|
218
|
+
</svelte:component>
|
|
219
|
+
{:else}
|
|
220
|
+
<svelte:component this={components[${l}]} {...(props_${l} || {})} />
|
|
221
|
+
{/if}
|
|
220
222
|
`
|
|
221
223
|
.replace(/^\t\t\t/gm, '')
|
|
222
224
|
.trim();
|
package/dist/cli.js
CHANGED
|
@@ -822,7 +822,7 @@ async function launch(port, https) {
|
|
|
822
822
|
exec(`${cmd} ${https ? 'https' : 'http'}://localhost:${port}`);
|
|
823
823
|
}
|
|
824
824
|
|
|
825
|
-
const prog = sade('svelte-kit').version('1.0.0-next.
|
|
825
|
+
const prog = sade('svelte-kit').version('1.0.0-next.204');
|
|
826
826
|
|
|
827
827
|
prog
|
|
828
828
|
.command('dev')
|
|
@@ -987,7 +987,7 @@ async function check_port(port) {
|
|
|
987
987
|
function welcome({ port, host, https, open, loose, allow, cwd }) {
|
|
988
988
|
if (open) launch(port, https);
|
|
989
989
|
|
|
990
|
-
console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.
|
|
990
|
+
console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.204'}\n`));
|
|
991
991
|
|
|
992
992
|
const protocol = https ? 'https:' : 'http:';
|
|
993
993
|
const exposed = typeof host !== 'undefined' && host !== 'localhost' && host !== '127.0.0.1';
|