Skip to content

Commit 0d51a9d

Browse files
committed
fix reload
1 parent 4b22a36 commit 0d51a9d

File tree

2 files changed

+385
-373
lines changed

2 files changed

+385
-373
lines changed

packages/kit/src/cli.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ prog
6363
let close;
6464

6565
async function start() {
66-
const { plugins, svelte_config } = await import('./core/dev/plugin.js');
66+
const { plugins, svelte_config } = await (await import('./core/dev/plugin.js')).create();
6767

6868
/** @type {import('vite').UserConfig} */
6969
const config = { plugins };
@@ -109,6 +109,7 @@ prog
109109
return server.close;
110110
}
111111

112+
// TODO: we should probably replace this with something like vite-plugin-restart
112113
async function relaunch() {
113114
const id = uid;
114115
relaunching = true;

0 commit comments

Comments
 (0)