Skip to content

Bug: entryPoints with Windows \ paths don't work #63

@cinderblock

Description

@cinderblock

If you're on Windows, and your entryPoints contain Windows's path character \, which work for esbuild, they won't match up with esbuild's internal naming. So nothing gets injected to the output html.

A simple fix is:

htmlPlugin({
  files: [
    {
      entryPoints: process.platform == 'win32' ? entryPoints.map(e => e.replaceAll('\\', '/')) : entryPoints,
      // ...
    },
  ],
}),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions