JSPM

@bowen7/hast-util-to-babel-ast

5.5.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q49817F
  • License MIT

Transform HAST to Babel AST (JSX)

Package Exports

  • @bowen7/hast-util-to-babel-ast
  • @bowen7/hast-util-to-babel-ast/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@bowen7/hast-util-to-babel-ast) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@svgr/hast-util-to-babel-ast

Build Status Version MIT License

Transforms HAST into Babel AST.

Install

npm install --save-dev @svgr/hast-util-to-babel-ast

Usage

import { parse } from 'svg-parser'
import toBabelAST from '@svgr/hast-util-to-babel-ast'

const hastTree = parse(`<svg></svg>`)

const babelTree = hastToBabelAst(hastTree)

License

MIT