acornjs / acorn-jsx

Alternative, faster React.js JSX parser
MIT License
646 stars 72 forks source link

JSX fragments support #83

Closed ArtemGovorov closed 6 years ago

ArtemGovorov commented 6 years ago

Adds support for the new standalone fragment syntax https://github.com/facebook/jsx/issues/84

RReverser commented 6 years ago

Looks good to me, but let me recheck once I'm not on the phone and will be able to merge/release.

adrianheine commented 6 years ago

openingFragment and closingFragment should be JSXOpeningFragment and JSXClosingFragment, see AST spec.

ArtemGovorov commented 6 years ago

@adrianheine Good catch, have sent the PR to make the implementation confirm the spec.