babel-plugin-react-hot
Advanced tools
Comparing version 1.0.0 to 1.0.1
12
index.js
@@ -1,10 +0,8 @@ | ||
if (typeof global === 'undefined' && typeof window !== 'undefined') { | ||
global = window; | ||
} | ||
'use strict'; | ||
var System = global && global.System; | ||
var pluginPath = 'babel-plugin-react-hot'; | ||
var pluginName = 'babel-plugin-react-hot'; | ||
var pluginPath = typeof __dirname === 'undefined' ? pluginName : __dirname; | ||
var makeHotName = 'makeHot'; | ||
var makeHotPath = (System && __dirname || pluginPath)+'/makeHot'; | ||
var makeHotPath = pluginPath+'/makeHot.js'; | ||
@@ -26,3 +24,3 @@ var reactName = 'React'; | ||
return new babel.Transformer(pluginPath, { | ||
return new babel.Transformer(pluginName, { | ||
/** | ||
@@ -29,0 +27,0 @@ * ES6 ReactComponent |
@@ -0,1 +1,3 @@ | ||
'use strict'; | ||
var ReactHotAPI = require('react-hot-api'); | ||
@@ -2,0 +4,0 @@ var madeHot = {}; |
{ | ||
"name": "babel-plugin-react-hot", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Babel plugin using `react-hot-api` to add hot reloading to `React.createClass` and all classes with a `render` method.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
10111
203