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

chore: Build via microbundle, add ESM for real #19

Merged
merged 1 commit into from
Feb 3, 2022

Conversation

ukstv
Copy link
Contributor

@ukstv ukstv commented Jan 17, 2022

Expose caip library as ESM, CJS, UMD.

Rationale: Apparently, ESM is advertised in package.json and is not really built. It definitely breaks applications built on Vite. Only CJS and UMD builds are available. Adding ESM for real is slightly more than just building with tsconfig.esm.json. This PR adds ESM build with no changes to the codebase.

Tested ESM availability using import.meta.resolve('caip') and import('caip').
Tested CJS availability using require.resolve('caip') and require('caip').

Expose caip library as ESM, CJS, UMD
@ukstv ukstv changed the title chore: Build via microbundle chore: Build via microbundle, add ESM for real Jan 17, 2022
@pedrouid pedrouid merged commit e2630b4 into ChainAgnostic:master Feb 3, 2022
@pedrouid pedrouid mentioned this pull request Feb 3, 2022
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