tomjs / vite-plugin-vscode

用 vue/react 来开发 vscode extension webview ,支持 esm 和 cjs。Use vue/react to develop vscode extension webview, supporting esm and cjs.
MIT License
29 stars 1 forks source link

bug in `getWebviewNpmPath` #4

Closed subframe7536 closed 3 months ago

subframe7536 commented 3 months ago

https://github.com/tomjs/vite-plugin-vscode/blob/c49025cb246e8f339686927359d8d38e4ab0e8d8/src/utils.ts#L145-L147

this snippet should move outside the scope of if (!fs.existsSync(npmPath))

tomgao365 commented 3 months ago

@subframe7536 I also discovered this problem at noon and planned to solve it in the evening. 😄 Try the latest version.