Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants