Skip to content

Conversation

@pboneure
Copy link

Remove the use of document element when in headless mode.
Import mjml browser only if another parser wasn't provided.

@gbremond
Copy link

Same issue on my side, thank's for the fix !
@artf do you have an opinion on this fix ?

src/index.ts Outdated
importPlaceholder: '',
imagePlaceholderSrc: '',
mjmlParser: mjml2html,
mjmlParser: opt.mjmlParser ? opt.mjmlParser : require("./components/parser"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason behind this? I think the require dependency will be "hoisted" anyway in the build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants