Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docs): prefer ESM exports of dependencies when bundling with esbuild #450

Merged
merged 1 commit into from Mar 21, 2023

Conversation

AlCalzone
Copy link
Contributor

Link to relevant issue

This pull request resolves #

Description of changes

When following the getting started guide, I got stuck because esbuild seems to prefer the UMD exports of some transpiled modules. Those can not be statically analyzed and cause runtime errors for missing dependencies - in my case vscode-json-languageservice and some of its dependencies.

By telling esbuild to prefer the module field over main, this issue gets avoided.

@AlCalzone AlCalzone changed the title fix: prefer ESM exports of dependencies when bundling fix(docs): prefer ESM exports of dependencies when bundling with esbuild Jan 24, 2023
Copy link
Member

@hawkticehurst hawkticehurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the catch! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants