rollup-starter-lib
rollup-starter-lib copied to clipboard
tslib usage seems off
First time coming across tslib
in this project (thanks). From its README:
This is a runtime library for TypeScript that contains all of the TypeScript helper functions.
For optimized bundles with TypeScript, you should absolutely consider using tslib and --importHelpers.
So it seems like the existing package.json
for this project should be updated to put tslib
under dependencies
(not devDependencies
), and that tsconfig.json
should have importHelpers
uncommented to set it to true
.
Would probably add some docs in README.md to the effect that e.g. if your lib is small (e.g. you only have one module), then you're better off just removing tslib
and the importHelpers
option.
What do you think? Do you want a PR for this?
Cheers