Skip to content

Publish as ESM? #85

@achingbrain

Description

@achingbrain

This module is authored in ESM but then transpiles that to CJS, then finally uses rollup to create a big code blob.

Image from https://esbuild.github.io/analyze/ :

image

The tsc config could be updated to just publish ESM and rollup could be removed.

This would make it easier to do tree shaking to remove unused code from bundles.

The same change could be made to pvutils and pvtsutils.

@microshine I can open some PRs if you'd fine this useful?

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