Closed 9590 closed 3 years ago
用h5环境时( npm run dev:weapp)时会编译出错,
把babel移出plugins: { } 就好了。
babel: { sourceMap: true, presets: [ [ "env", { modules: false } ] ], plugins: [ "transform-decorators-legacy", "transform-class-properties", "transform-object-rest-spread" ] },
plugins: {
},
使用的taro版本是多少呢?
taro
2.x
用h5环境时( npm run dev:weapp)时会编译出错,
把babel移出plugins: { } 就好了。
babel: { sourceMap: true, presets: [ [ "env", { modules: false } ] ], plugins: [ "transform-decorators-legacy", "transform-class-properties", "transform-object-rest-spread" ] },
plugins: {
},