typescript中使用类并且声明成员变量后,在UC浏览器中运行会报 Unexpected token = 错误
处理方式
lib中的esnext改成ES2015,增加target:ES2015
javascript
{
"extends": "@vue/tsconfig/tsconfig.json",
"compilerOptions": {
"target": "ES2015",
"sourceMap": true,
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
},
"lib": ["ES2015", "dom"],
"types": ["@dcloudio/types"]
},
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"]
}