@svgr/hast-util-to-babel-ast
v8.0.0
Published
Transform HAST to Babel AST (JSX)
Downloads
32,588,884
Maintainers
Readme
@svgr/hast-util-to-babel-ast
Transforms HAST into Babel AST.
Install
npm install --save-dev @svgr/hast-util-to-babel-ast
Usage
import { parse } from 'svg-parser'
import hastToBabelAst from '@svgr/hast-util-to-babel-ast'
const hastTree = parse(`<svg></svg>`)
const babelTree = hastToBabelAst(hastTree)
License
MIT