Warning about deprecated inlineDynamicImports when debugging in VS Code
Author: kenlyonCreated Jul 31, 2026Updated Jul 31, 2026
Pre-flight checklist
- I have read the contribution documentation for this project.
- I agree to follow the code of conduct that this project uses.
- I have searched the issue tracker for a bug that matches the one I want to file, without success.
Forge version
7.11.2
Electron version
42.4.0
Operating system
Windows 10
Last known working Forge version
No response
Expected behavior
No warnings when debugging through VS Code.
Actual behavior
Warning observed after "Debugger attached." message:
WARN inlineDynamicImports option is deprecated, please use codeSplitting: false instead.Steps to reproduce
- Create a new electron-forge project in VS Code.
- Add a debug profile that executes this in Windows:
${workspaceFolder}/../node_modules/@electron-forge/cli/script/vscode.cmd - Debug the project.
- Observe the Debug Console.
I can see inlineDynamicImports: true in the following two files:
- @electron-forge\plugin-vite\dist\config\vite.preload.config.js:18:
inlineDynamicImports: true, - @electron-forge\plugin-vite\src\config\vite.preload.config.ts:20:
inlineDynamicImports: true,
Additional information
No response
Source: electron/forge