0.1.1 • Published 10 years ago

aster-parse-jsx v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

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