Faire / mjml-react

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

Move render mjml to html helper functions to utils folder #20

Closed emmclaughlin closed 1 year ago

emmclaughlin commented 1 year ago

These render functions should be exported as standalone functions, so we moved them to the utils folder. There are not related to the utils used for generating the mjml-react components.

IanEdington commented 1 year ago

This enables using the main import in a browser context without mocking of packages

emmclaughlin commented 1 year ago

This enables using the main import in a browser context without mocking of packages

It enables using the main import in a browser context, but I think what it actually fixes is it allows aliasing mjml to be mjml-browser without errors because it removes any imports from the mjml package out of the main import