babel-plugin-jsx-pragmatic
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -25,12 +25,2 @@ /** | ||
Program: { | ||
enter: function (path, state) { | ||
// TODO | ||
// When I can figure out how to access these options in pre(), move this | ||
// validation there. | ||
if (! (state.opts.module && state.opts.import)) { | ||
throw new Error("babel-plugin-jsx-pragmatic: You must specify `module` and `import`"); | ||
} | ||
}, | ||
// enter | ||
exit: function (path, state) { | ||
@@ -58,2 +48,7 @@ if (! state.get('jsxDetected')) return; | ||
return { | ||
pre: function () { | ||
if (! (this.opts.module && this.opts.import)) { | ||
throw new Error("babel-plugin-jsx-pragmatic: You must specify `module` and `import`"); | ||
} | ||
}, | ||
inherits: require("babel-plugin-syntax-jsx"), | ||
@@ -60,0 +55,0 @@ visitor: visitor, |
{ | ||
"name": "babel-plugin-jsx-pragmatic", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"main": "jsx-pragmatic.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
6776
50