-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
build: ship commonjs version for node and testing #10
Comments
Are you compiling to JS and then running the tests on the compiled version? How would you imagine the two build targets would be handled? Something like this? import '@abraham/reflection'; require('@abraham/reflection/dist/common.js'); |
the API should remain same, package.json should be source of truth here., I think. WDYT ? :) {
"main": "dist/reflection.umd.js", // commonjs bundle
"module": "dist/index.js", // es2015 module
} |
Are there build tools that use the |
Webpack, rollup ... I'm using it all the time https://github.com/Hotell/typescript-lib-starter |
Want to give |
Currently if i wanna use same polyfills in testing environment ( jest ) like in dev/prod with typescript I have to do a lot of ceremony:
this is rather hack then good DX experience :)
shipping commonJS bundle is a no brainer and would help a lot ;) cheers
The text was updated successfully, but these errors were encountered: