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

Don't use esbuild for building framework #21

Closed
zardoy opened this issue Nov 10, 2021 · 1 comment
Closed

Don't use esbuild for building framework #21

zardoy opened this issue Nov 10, 2021 · 1 comment

Comments

@zardoy
Copy link
Owner

zardoy commented Nov 10, 2021

I'm currently using esbuild for building all packages. The main reason is not speed, but ability to use __DEV__ env variable and strip development code in production.

Unfortunately, I just figured out that esbuild isn't good for building libraries, since, even in cjs format it doesn't allow to mock any exports, which is blocking testing at any position and it is high priority for me. evanw/esbuild#412 (comment)

Currently I don't use environment variables, so I try to stick with the TypeScript compiler

@zardoy zardoy closed this as completed in 51c83ed Nov 10, 2021
@zardoy
Copy link
Owner Author

zardoy commented Nov 10, 2021

esbuild.mjs

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

No branches or pull requests

1 participant