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.
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
.