We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I should be able to debug the main process with Chrome Dev Tools with proper source maps instead I am getting this:
Just scaffold a new project with the Vite + Typescript plugin
npm init electron-app@latest pure-forge-app -- --template=vite-typescript
Then add a new entry to scripts in package.json. "dev:main": "electron-forge start -- --inspect-brk"
scripts
package.json
"dev:main": "electron-forge start -- --inspect-brk"
As suggested here, https://www.electronforge.io/cli#options
7.2.0
v28.2.1
macOS 14.2.1
The text was updated successfully, but these errors were encountered:
vite.main.config.mjs
defineConfig({ build: { + rollupOptions: { + output: { + sourcemap: true, + }, + }, }, });
Sorry, something went wrong.
@caoxiemeihao Thanks a ton! Shouldn't this be default behaviour for DEVELOPMENT and probably optional for PRODUCTION?
DEVELOPMENT
PRODUCTION
This is a good idea, and I will improve the sourcemap option in future versions.
sourcemap
@caoxiemeihao Incase you can give me some quick directions, I'd love to attempt a PR myself?
Successfully merging a pull request may close this issue.
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: