Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
components,
props,
...scope
}
const jsx = mdx
.sync(children, {
remarkPlugins,
rehypePlugins,
skipExport: true
})
.trim()
let code
try {
code = transform(jsx, {
objectAssign: 'Object.assign'
}).code
} catch (err) {
console.error(err)
throw err
}
const keys = Object.keys(fullScope)
const values = Object.values(fullScope)
// eslint-disable-next-line no-new-func
const fn = new Function(
'_fn',
'React',
...keys,
`${code}