diff --git a/nodemon.json b/nodemon.json index 0768a4245..a3a145b1d 100644 --- a/nodemon.json +++ b/nodemon.json @@ -1,4 +1,7 @@ { + "env": { + "__DEV__": "true" + }, "watch": [ "src", "utils", "vite.config.ts" ], diff --git a/vite.config.ts b/vite.config.ts index 421053aaf..bd75b9253 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -22,6 +22,7 @@ export default defineConfig({ publicDir, build: { outDir, + sourcemap: process.env.__DEV__ === "true", rollupOptions: { input: { devtools: resolve(pagesDir, "devtools", "index.html"),