Skip to content

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