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
Transforms HAST into Babel AST.
Install
npm install --save-dev @svgr/hast-util-to-babel-astUsage
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