acorn-jsx under the hood.
Requiring this module provides you with an Acorn plugin that you can use like this:
var acorn = ;var jsx = ;acornParser;
Note that official spec doesn't support mix of XML namespaces and object-style access in tag names (#27) like in
<namespace:Object.Property />, so it was deprecated in
email@example.com. If you still want to opt-in to support of such constructions, you can pass the following option:
Also, since most apps use pure React transformer, a new option was introduced that allows to prohibit namespaces completely:
Note that by default
allowNamespaces is enabled for spec compliancy.
This plugin is issued under the MIT license.