lock regenerator-runtime@0.12.1

This commit is contained in:
fxy060608 2019-03-27 19:27:29 +08:00
parent 54f4e32346
commit abf6fa50cf

View File

@ -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',