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

PoC: Replace esbuild with tsc #235

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

daniel-ac-martin
Copy link

Just a proof of concept for replacing esbuild with simple calls to tsc.

I think this would address: #208
It is an alternative to: #230

That all said, there is a view that 'dual packages' (CJS + ESM) are a bad idea, and that it is better to provide a slim ESM wrap around CJS code. See: https://nodejs.org/api/packages.html#dual-package-hazard

I've not tested this extensively, so it would be best to inspect the built files to check that it is doing what is required.

This approach also increases the size of the built package a bit. (Though there's probably an opportunity to remove some of the type files.)

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