ix: rollup-plugin-esbuild tsconfig.json check

This commit is contained in:
草鞋没号 2021-02-18 16:26:59 +08:00
parent 7b472f36c6
commit dc758b0521
2 changed files with 15 additions and 1 deletions

View File

@ -41,6 +41,20 @@
], ],
``` ```
- "rollup-plugin-esbuild": "^2.4.2", 有 BUG `21-02-18` - "rollup-plugin-esbuild": "^2.4.2", 有 BUG `21-02-18`
- **tsconfig.json中不能有多余的逗号不然有如下警告** `21-02-18`
```bash
SyntaxError: Unexpected token ] in JSON at position 428
at JSON.parse (<anonymous>)
at Object.load (/Users/caoxie/Desktop/github/electron-vue-vite2/node_modules/rollup-plugin-esbuild/dist/index.js:21:17) {
code: 'PLUGIN_ERROR',
plugin: 'esbuild',
hook: 'transform',
id: '/Users/caoxie/Desktop/github/electron-vue-vite2/src/main/index.ts',
watchFiles: [
'/Users/caoxie/Desktop/github/electron-vue-vite2/src/main/index.ts'
]
}
```
## 总结 ## 总结

View File

@ -12,7 +12,7 @@
"strict": true, "strict": true,
"paths": { "paths": {
"@/*": ["src/render/*"], "@/*": ["src/render/*"],
"@root/*": ["./*"], "@root/*": ["./*"]
}, },
"allowSyntheticDefaultImports": true "allowSyntheticDefaultImports": true
}, },