aster-parse-jsx

0.1.1 • Public • Published

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

/aster-parse-jsx/

    Package Sidebar

    Install

    npm i aster-parse-jsx

    Weekly Downloads

    3

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • rreverser