-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Every addon has incorrect module mappings #5128
Copy link
Copy link
Closed
Labels
area/buildRegarding the build processRegarding the build processtype/bugSomething is misbehavingSomething is misbehaving
Milestone
Description
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"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/buildRegarding the build processRegarding the build processtype/bugSomething is misbehavingSomething is misbehaving