提交 00d1fdd1 编写于 作者: D DCloud_LXH

feat(app-nvue): support pinia

上级 04c80c95
export function external(appService: boolean) { export function external(appService: boolean) {
return appService ? ['vue'] : ['vue', 'vuex'] return appService ? ['vue'] : ['vue', 'vuex', 'pinia']
} }
export function globals(appService: boolean): { [name: string]: string } { export function globals(appService: boolean): { [name: string]: string } {
return appService return appService
......
...@@ -14,6 +14,7 @@ export function createOptimizeDeps( ...@@ -14,6 +14,7 @@ export function createOptimizeDeps(
'@dcloudio/uni-components', '@dcloudio/uni-components',
'@dcloudio/uni-i18n', '@dcloudio/uni-i18n',
'@dcloudio/uni-shared', '@dcloudio/uni-shared',
'pinia',
], ],
} }
} }
...@@ -15,6 +15,7 @@ const BUILT_IN_MODULES = { ...@@ -15,6 +15,7 @@ const BUILT_IN_MODULES = {
'@dcloudio/uni-cloud': 'dist/uni-cloud.es.js', '@dcloudio/uni-cloud': 'dist/uni-cloud.es.js',
'@dcloudio/uni-i18n': 'dist/uni-i18n.es.js', '@dcloudio/uni-i18n': 'dist/uni-i18n.es.js',
'@dcloudio/uni-shared': 'dist/uni-shared.es.js', '@dcloudio/uni-shared': 'dist/uni-shared.es.js',
pinia: 'dist/pinia.mjs',
} }
export type BuiltInModulesKey = keyof typeof BUILT_IN_MODULES export type BuiltInModulesKey = keyof typeof BUILT_IN_MODULES
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册