Skip to content

publish package so both esm and cjs can co-exist with the same imports #72

@IanEdington

Description

@IanEdington

currently the package publishes esm and cjs seperately. This results in import statements like the following:

cjs

import { render } from "@faire/mjml-react/renders";

esm

import { render } from "@faire/mjml-react/esm/renders";

Is there some way to have the folders merged with both an esm and cjs version available?
Would it make sense to prioritize one and allow the other to use an alias? ie. cjs is in root and esm is a directory in root? done

import { render } from "@faire/mjml-react/renders";

split out from #64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions