-
-
Notifications
You must be signed in to change notification settings - Fork 488
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
Sourcemaps don't seem to be loaded while Debugging main process with Chrome Dev Tools #3483
Closed
3 tasks done
Comments
vite.main.config.mjs defineConfig({
build: {
+ rollupOptions: {
+ output: {
+ sourcemap: true,
+ },
+ },
},
}); |
@caoxiemeihao Thanks a ton! Shouldn't this be default behaviour for |
This is a good idea, and I will improve the |
@caoxiemeihao Incase you can give me some quick directions, I'd love to attempt a PR myself? |
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pre-flight checklist
Expected behavior
I should be able to debug the main process with Chrome Dev Tools with proper source maps instead I am getting this:
Extremely simple to reproduce.
Just scaffold a new project with the Vite + Typescript plugin
Then add a new entry to
scripts
inpackage.json
."dev:main": "electron-forge start -- --inspect-brk"
As suggested here, https://www.electronforge.io/cli#options
Electron Forge version
7.2.0
Electron version
v28.2.1
Operating system
macOS 14.2.1
Last known working Electron Forge version
7.2.0
The text was updated successfully, but these errors were encountered: