Skip to content

Question around ESM support for bundlers + node #513

@itsdouges

Description

@itsdouges

Hey folks! Love the library, definitely helps making package interop in monorepos easier. With ES what's the current support like, and how should it work for local dev?

Looking at commonjs - it uses the babel hook to transpile on the fly so local development works without any extra work, fantastic! It doesn't look like the ESM output has the same treatment though. Should it? E.g. if I have my package with "type": "module", and have it flow through into the esm module, it won't work during local dev since it's TypeScript and most bundlers (and ts-node) won't transpile node modules without extra effort.

If anyone has insight I'd appreciate it, 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