Skip to content

tslib usage seems off #73

@justin-calleja

Description

@justin-calleja

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions