New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't load sourcemaps for node modules in renderer #70
Comments
Related: cawa-93/vite-electron-builder#386 |
Ok, I found that installing https://github.com/vite-plugin/vite-plugin-esmodule fixes most of these warnings |
renderer({
resolve() {
return ["path", "fs", "stream", "os", "child_process", "node-fetch", "spring-map-parser", "tachyon-client", "sdfz-demo-parser", "octokit"];
},
}), This will generate |
Btw, I found that Still no idea how to fix this unfortunately. Maybe the problem lies with |
The next version will be generate |
Actually I'm not sure if it would work even if the |
vite-plugin-electron/packages/electron-renderer/src/optimizer.ts Lines 129 to 140 in 646eaa6
|
The modules themselves are working fine, and the sourcemaps are there in their respective folders in
node_modules
, but the renderer can't load them:I didn't see any existing issues about this so maybe something to do with my setup:
Any ideas how I can fix these, or otherwise hide the warnings?
The text was updated successfully, but these errors were encountered: