mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-25 09:55:15 +00:00
732 B
732 B
@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 toBabelAST from '@svgr/hast-util-to-babel-ast'
const hastTree = parse(`<svg></svg>`)
const babelTree = hastToBabelAst(hastTree)
License
MIT