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
vscode-languageserver-types package metadata still steers webpack builds into the UMD entry, causing dependency warnings** #1743
After forcing the ESM entry, the warning disappears and the build succeeds normally.
That suggests the ESM artifact is already suitable, but the published package surface still makes it too easy for bundlers/dependencies to fall back to the UMD build.
Expected behavior
Modern bundlers should not need manual aliasing or warning suppression just to consume vscode-languageserver-types.
Actual behavior
Bundlers can still resolve the UMD build and emit webpack critical dependency warnings from the published artifact.
Request
Would you consider updating the published package shape so modern bundlers are less likely (or unable) to fall back to the UMD entry unintentionally?
Potential fixes could include one or more of:
Make the package root resolve to the ESM build for modern bundler scenarios more consistently.
Expose explicit subpath exports for ESM vs UMD/CJS instead of leaving default pointed at UMD.
Revisit whether main should still point at ./lib/umd/main.js.
Coordinate with downstream Microsoft language-service packages that still publish UMD-first metadata, if that is part of the chain here.
Notes
I realize some of the downstream resolution behavior may also involve vscode-css-languageservice (which still publishes main as UMD and module as ESM), so if maintainers think part of this belongs there instead, I’m happy to open a companion issue. But the webpack warning itself is currently emitted from the vscode-languageserver-types UMD artifact published from this repo.
Activity
zhang-brook commentedon Apr 7, 2026
I'm facing the same issue in a similar environment, just with Docusaurus 3.10.0. Thanks in advance for any suggestions.
Nick2bad4u commentedon Apr 7, 2026
Seems it's happening to all docusaurus users 😭
dbaeumer commentedon May 19, 2026
Martin Aeschlimann (@aeschli) can you help me with this. You once introduced them.