aster-parse-jsx
v0.1.1
Published
React's JSX parser for aster.
Downloads
11
Maintainers
Readme
aster-parse-jsx
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).