ygj6

Results 94 comments of ygj6

You can disable HMR by set [server.hmr](https://vitejs.dev/config/#server-hmr) to false.

The scene is a little too special. Maybe you can put a breakpoint on @vite/client to stop the page reload.

Hi @hatchette , you can put your 'my-lib.mjs' in 'public' dir. And reference the js file like this: ```js ``` Here is the code: https://github.com/vitejs/vite/blob/144b92c391cbb6ced33a860e8eed5665031f4d48/packages/vite/src/node/plugins/asset.ts#L132-L147

Sometimes runtime errors occur after most of the page is loaded normally and the page can be used normally. In this case, will the page be replaced with the browser...