Skip to content

pwmckenna/react-transform-noop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-transform-noop

This is a react-transform that does nothing! Its just a starter kit showing how to write/test/publish a react-transform.

Features

  • Builds with babel 6 using the es2015 and react presets. (npm compile)
  • Tests with mocha (npm test)

Getting Started

Usage

There's no point in using this transform. It doesn't do anything! That being said, you can use it by updating your .babelrc file to look like the following. Your much fancier transform will also require something like this.

{
  "presets": [
    "react"
  ],
  "plugins": [
    ["react-transform", {
      "transforms": [{
        "transform": "react-transform-noop"
      }]
    }]
  ]
}