react-transform-noop
v1.0.1
Published
React Transform that does nothing
Downloads
4
Readme
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
git clone [email protected]:pwmckenna/react-transform-noop.git
npm install
- edit src/index.js to do something.
- edit test/index.js to test your changes.
npm test
- Tests pass? change name + other package info +
npm publish
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"
}]
}]
]
}