Vite template - code editor debugger can't hit breakpoints
- Dominant language
- TypeScript
- Stars
- 7.1k
- Forks
- 641
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 30
Description
### Pre-flight checklist
- [X] I have read the [contribution documentation](https://github.com/electron/forge/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [code of conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project uses.
- [X] I have searched the issue tracker for a bug that matches the one I want to file, without success.
### Electron Forge version
6.4.2
### Electron version
27.0.3
### Operating system
Windows 11
### Last known working Electron Forge version
_No response_
### Expected behavior
Hitting a breakpoint when a debugger is attached. Just like it works in a webpack configuration.
### Actual behavior
In app created with vite template (w/wo typescript) the debugger does not stop at breakpoints. Tested in vscode and webstorm.
Of course, debugger configuration according to https://www.electronforge.io/advanced/debugging.

### Steps to reproduce
Create a new app using a _Vite_ or _Vite + TypeScript template_ .
Create debugger configuration in vscode (https://www.electronforge.io/advanced/debugging).
Add breakpoint to a line in main.js/main.ts file.
Start debugger.
### Additional information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.