From e150d60e32736747e203473c8fb6e58fd12e4d79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cchenhuachun=E2=80=9D?= <“samchen08@163.com”> Date: Sat, 1 Mar 2025 09:02:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20uniapp=20provider=20undef?= =?UTF-8?q?ined?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/uniapp/vite.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/uniapp/vite.config.ts b/apps/uniapp/vite.config.ts index 4b47932a8..8cffcf0f4 100644 --- a/apps/uniapp/vite.config.ts +++ b/apps/uniapp/vite.config.ts @@ -9,12 +9,13 @@ export default createUniappViteConfig({ plugins: [ createDevTools({ // staticBase: basePath, - devMode: false, + devMode: true, pluginNodeModulesDir: '../../node_modules' }), !process.env.PREVIEW ? uni() : undefined ], alias: { + '@vtj/uni-app': resolve('../../platforms/uni-app/src/index.ts'), 'axios/lib/core/settle': resolve( '../../node_modules/axios/lib/core/settle' ),