How to use buble-jsx-only - 1 common examples

To help you get started, we’ve selected a few buble-jsx-only examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mdx-js / mdx / packages / runtime / src / index.js View on Github external
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}

buble-jsx-only

Bublé, but just JSX.

MIT
Latest version published 3 years ago

Package Health Score

50 / 100
Full package analysis

Popular buble-jsx-only functions