mimosa-react

1.3.0 • Public • Published

mimosa-react

Overview

This is a React/JSX compiler for the Mimosa build tool. It will precompile your .jsx files.

For more information regarding Mimosa, see http://mimosa.io

Usage

Add 'react' to your list of modules. That's all! Mimosa will install the module for you when you start mimosa watch or mimosa build.

Functionality

This module will compile your React/JSX files.

This module supports source maps and includes them during mimosa watch by default. Source maps are disabled for mimosa build.

Note: As of 1.3.0 this module no longer prepends the JSX pragma.

Default Config

react: {
  lib: undefined,
  extensions: ["jsx"],
  options: {
    harmony: false,
    sourceMap: true
  }
}

lib react-tools library

You may want to use this module but may not be ready to use the latest version of the react-tools. Using the lib property you can provide a specific version of react-tools if the one being used by this module isn't to your liking. To provide a specific version, you must have it npm installed into your project and then provide it to lib. For instance: lib: require('react-tools').

extensions an array of strings

The extensions of your React/JSX files.

options object

Pass through options to the react-tools compiler.

Package Sidebar

Install

npm i mimosa-react

Weekly Downloads

11

Version

1.3.0

License

MIT

Last publish

Collaborators

  • dbashford