karma-react-jsx-preprocessor

v0.1.1
A karma preprocessor for compiling React JSX files.
jsx react.js karma karma-plugin karma-launcher

karma-react-jsx-preprocessor

A karma preprocessor for compiling React JSX files.

Version 0.1.x should be compatible with the 0.10.x version of Karma.

How to use

It is really simple: Add a preprocessor clause to the karma conf file, and it will automatically transform the .jsx files.

module.exports = function(config) {
    config.set({
        preprocessors: {
            '**/*.jsx': [ 'react-jsx' ]
        },

        // the rest of the config should be here
    })
}
npm i karma-react-jsx-preprocessor

Metadata

  • WTFPL
  • Whatever
  • Benjamin Horsleben
  • released 6/4/2014

Downloads

Maintainers