Faire / mjml-react

React component library to generate the HTML emails on the fly
https://www.npmjs.com/package/@faire/mjml-react
MIT License
375 stars 16 forks source link

fix(import): convert require to esm import #98

Closed emmclaughlin closed 1 year ago

emmclaughlin commented 1 year ago

Related to https://github.com/Faire/mjml-react/issues/96

It seems the require statement was building to require in both esm and cjs. By converting to an esm import it will stay this way in esm and be converted to a require in cjs by the build process. This should fix instances of ReferenceError: require is not defined.

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 3.1.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: