mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-09-01 03:54:21 +08:00
ix: rollup-plugin-esbuild tsconfig.json check
This commit is contained in:
14
README.md
14
README.md
@@ -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'
|
||||||
|
]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## 总结
|
## 总结
|
||||||
|
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
"strict": true,
|
"strict": true,
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["src/render/*"],
|
"@/*": ["src/render/*"],
|
||||||
"@root/*": ["./*"],
|
"@root/*": ["./*"]
|
||||||
},
|
},
|
||||||
"allowSyntheticDefaultImports": true
|
"allowSyntheticDefaultImports": true
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user