From ae36fe2292763110cc3de4309765edcc46626792 Mon Sep 17 00:00:00 2001 From: chilingling Date: Thu, 26 Dec 2024 05:53:31 -0800 Subject: [PATCH] fix: generate code missing template on development runtime --- designer-demo/vite.config.js | 3 +++ packages/engine-cli/template/designer/vite.config.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/designer-demo/vite.config.js b/designer-demo/vite.config.js index e60881797..520b37c1c 100644 --- a/designer-demo/vite.config.js +++ b/designer-demo/vite.config.js @@ -16,6 +16,9 @@ export default defineConfig((configEnv) => { publicDir: path.resolve(__dirname, './public'), server: { port: 8090 + }, + define: { + process: {} } } diff --git a/packages/engine-cli/template/designer/vite.config.js b/packages/engine-cli/template/designer/vite.config.js index 9dd2864eb..22a329ce5 100644 --- a/packages/engine-cli/template/designer/vite.config.js +++ b/packages/engine-cli/template/designer/vite.config.js @@ -15,6 +15,9 @@ export default defineConfig((configEnv) => { publicDir: path.resolve(__dirname, './public'), server: { port: 8090 + }, + define: { + process: {} } }