Skip to content

Warning about deprecated inlineDynamicImports when debugging in VS Code #4336

Description

@kenlyon

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

  1. Create a new electron-forge project in VS Code.
  2. Add a debug profile that executes this in Windows:
    ${workspaceFolder}/../node_modules/@electron-forge/cli/script/vscode.cmd
  3. Debug the project.
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions