Skip to content

Every addon has incorrect module mappings #5128

@iSuslov

Description

@iSuslov

Details

for beta version (53 currently) every addon has module path in package.json like this:

"module": "lib/addon-fit.mjs",

however actual file is:

lib/xterm-addon-fit.mjs

This breaks build system with error:

[plugin:vite:import-analysis] Failed to resolve entry for package "@xterm/addon-fit". The package may have incorrect main/module/exports specified in its package.json.

Workaround

Until fixed, add a postinstall script in package.json:

"postinstall": " for f in node_modules/@xterm/addon-*/lib/xterm-*; do mv \"$f\" \"${f/xterm-/}\"; done"

Metadata

Metadata

Assignees

Labels

area/buildRegarding the build processtype/bugSomething is misbehaving

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions