Skip to content

asterjs/aster-parse-jsx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published