webadmin增加财务模块
This commit is contained in:
@@ -33,10 +33,26 @@ export default defineConfig(async () => ({
|
||||
framework: 'react',
|
||||
compiler: {
|
||||
type: 'vite',
|
||||
vitePlugins: [],
|
||||
vitePlugins: [
|
||||
{
|
||||
name: 'dukang-mini-user-vite-memory',
|
||||
config() {
|
||||
return {
|
||||
// H5 Vite watch 预构建 Stencil 组件时峰值极易 >8GB;noDiscovery 降低冷启动成本
|
||||
optimizeDeps: {
|
||||
noDiscovery: true,
|
||||
include: ['react', 'react-dom', 'react/jsx-runtime'],
|
||||
},
|
||||
build: {
|
||||
sourcemap: false,
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
cache: {
|
||||
enable: false,
|
||||
enable: true,
|
||||
},
|
||||
mini: {
|
||||
/** dev:weapp 预览模式需开启,否则 React hooks 在 Vite 下会失效 */
|
||||
|
||||
Reference in New Issue
Block a user