Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
mjmlConfigPath = null,
noMigrateWarn = false,
} = options
// if mjmlConfigPath is specified then we need to handle it on each call
if (mjmlConfigPath) handleMjmlConfig(mjmlConfigPath, registerComponent)
if (typeof mjml === 'string') {
mjml = MJMLParser(mjml, {
keepComments,
components,
filePath,
})
}
mjml = handleMjml3(mjml, { noMigrateWarn })
const globalDatas = {
backgroundColor: '',
breakpoint: '480px',
classes: {},
classesDefault: {},
defaultAttributes: {},
fonts,
inlineStyle: [],
headStyle: {},
componentsHeadStyle: [],
headRaw: [],
mediaQueries: {},
preview: '',
style: [],
title: '',