mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-31 20:16:36 +08:00
ix: rollup-plugin-esbuild tsconfig.json check
This commit is contained in:
parent
7b472f36c6
commit
dc758b0521
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
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user