You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
First time coming across
tslib
in this project (thanks). From its README:So it seems like the existing
package.json
for this project should be updated to puttslib
underdependencies
(notdevDependencies
), and thattsconfig.json
should haveimportHelpers
uncommented to set it totrue
.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 theimportHelpers
option.What do you think? Do you want a PR for this?
Cheers
The text was updated successfully, but these errors were encountered: