You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Warning about deprecated inlineDynamicImports when debugging in VS Code #4336
This looks fixed in Forge 8. #4222 switched the preload config from inlineDynamicImports: true to codeSplitting: false, and it's in the published @electron-forge/plugin-vite@8.0.1 (dist/config/vite.preload.config.js). 7.11.2 still ships the old option.
Quick check with Vite 8.3.5, building a small entry with a dynamic import using each set of output options:
7.11.2 options (inlineDynamicImports: true): WARN inlineDynamicImports option is deprecated, please use codeSplitting: false instead.
8.0.1 options (codeSplitting: false): no deprecation warning, still a single .cjs output.
So upgrading to Forge 8 should make the warning go away. Note 8.x also moves plugin-vite to vite@^8 and emits main/preload as .cjs (#4393), so check the release notes when upgrading.
Activity
RagedPanda commentedon Oct 22, 2026
This looks fixed in Forge 8. #4222 switched the preload config from
inlineDynamicImports: truetocodeSplitting: false, and it's in the published@electron-forge/plugin-vite@8.0.1(dist/config/vite.preload.config.js). 7.11.2 still ships the old option.Quick check with Vite 8.3.5, building a small entry with a dynamic import using each set of output options:
inlineDynamicImports: true):WARN inlineDynamicImports option is deprecated, please use codeSplitting: false instead.codeSplitting: false): no deprecation warning, still a single.cjsoutput.So upgrading to Forge 8 should make the warning go away. Note 8.x also moves
plugin-vitetovite@^8and emits main/preload as.cjs(#4393), so check the release notes when upgrading.