mirror of
https://gitee.com/dcloud/uni-preset-vue
synced 2025-04-25 14:38:55 +08:00
lock regenerator-runtime@0.12.1
This commit is contained in:
parent
54f4e32346
commit
abf6fa50cf
10
generator.js
10
generator.js
@ -32,6 +32,13 @@ async function generate (dir, files, base = '', rootOptions = {}) {
|
||||
}
|
||||
|
||||
module.exports = (api, options, rootOptions) => {
|
||||
api.extendPackage(pkg => {
|
||||
return {
|
||||
devDependencies: {
|
||||
'regenerator-runtime':'^0.12.1'//锁定版本,避免高版本在小程序中出错
|
||||
}
|
||||
}
|
||||
})
|
||||
if (options.template !== 'default-ts') {
|
||||
api.extendPackage(pkg => {
|
||||
return {
|
||||
@ -47,8 +54,7 @@ module.exports = (api, options, rootOptions) => {
|
||||
return {
|
||||
dependencies: {
|
||||
'vue-class-component': '^6.3.2',
|
||||
'vue-property-decorator': '^8.0.0',
|
||||
'regenerator-runtime':'^0.12.1'//锁定版本,避免高版本在小程序中出错
|
||||
'vue-property-decorator': '^8.0.0'
|
||||
},
|
||||
devDependencies: {
|
||||
'@babel/plugin-syntax-typescript': '^7.2.0',
|
||||
|
Loading…
x
Reference in New Issue
Block a user