aster-parse-jsx

React's JSX parser for aster.

Usage no npm install needed!

<script type="module">
  import asterParseJsx from 'https://cdn.skypack.dev/aster-parse-jsx';
</script>

README

aster-parse-jsx

NPM version Build Status

React's JSX parser for aster.

Usage

This is internal module and should be used as part of aster-parse or aster-src.

It uses jsx-esprima transpiler to do it's job.

API

parseJSX(options)

options.loc

Type: Boolean Default: true

Location tracking (required for source maps).

options.comments

Type: Boolean Default: true

Include comments to AST (required for parsing custom /** @jsx CustomDOM */ annotations).

License

MIT License