node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey »



This Node.js module is a plugin for the RaptorJS Optimizer, that provides support to precompile Facebook React JSX files with the .jsx extension into JavaScript.


$ npm install --save optimizer-jsx


In your dependencies list in optimizer.json, just go ahead and all your source .jsx files


And add optimizer-jsx as the required plugin in optimizer-config.json

    "plugins": [

The JSX directive /** @jsx React.DOM */ is automatically prepended to .jsx files if missing.