Skip to content

Conversation

@parkerduckworth
Copy link
Member

Introduce tsup to build the project in both commonjs and esm, exporting the use of both builds in the package.json. This is in contrast to the current setup of a single build which attempts to accommodate both build targets.

This change fixes a broken setup which was discovered when trying to use the embedded client within an esm project, which was a result of the emitted JS containing both require and import statements.

@parkerduckworth parkerduckworth force-pushed the tsup-hybrid-lib-support branch from fedcf19 to 018d79e Compare May 8, 2023 19:03
@parkerduckworth parkerduckworth force-pushed the tsup-hybrid-lib-support branch from 018d79e to cedc427 Compare May 8, 2023 19:08
@parkerduckworth parkerduckworth merged commit c4decdb into main May 8, 2023
@parkerduckworth parkerduckworth deleted the tsup-hybrid-lib-support branch May 8, 2023 19:35
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.

2 participants