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: esm builds #4

Merged
merged 1 commit into from
Jan 30, 2025
Merged

fix: esm builds #4

merged 1 commit into from
Jan 30, 2025

Conversation

dmaskasky
Copy link
Member

Using ESM modules requires ensuring filepaths have their extension. When building ESM without a bundler, we need to ensure the file extension is present. Using tsconfig "moduleResolution": "bundler", allows for the file extension to not be present in source, but then we must ensure the file extension is inserted at build time. In this PR, this is done with tsc-alias.

Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@dmaskasky dmaskasky merged commit 4ab5bd4 into main Jan 30, 2025
3 checks passed
@dmaskasky dmaskasky deleted the fix-esm-builds branch January 30, 2025 22:13
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.

1 participant