babel-plugin-react-transform
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -17,2 +17,6 @@ 'use strict'; | ||
var _pathParse = require('path-parse'); | ||
var _pathParse2 = _interopRequireDefault(_pathParse); | ||
exports['default'] = function (_ref) { | ||
@@ -37,5 +41,5 @@ var Plugin = _ref.Plugin; | ||
var depthKey = Symbol('depth'); | ||
var recordsKey = Symbol('records'); | ||
var wrapComponentIdKey = Symbol('wrapComponentId'); | ||
var depthKey = '__reactTransformDepth'; | ||
var recordsKey = '__reactTransformRecords'; | ||
var wrapComponentIdKey = '__reactTransformWrapComponentId'; | ||
@@ -178,10 +182,10 @@ function isRenderMethod(member) { | ||
function isSameAsFileBeingProcessed(importPath) { | ||
var _path$parse = _path2['default'].parse(resolvePath(importPath, filename)); | ||
var _parsePath = (0, _pathParse2['default'])(resolvePath(importPath, filename)); | ||
var dir = _path$parse.dir; | ||
var base = _path$parse.base; | ||
var ext = _path$parse.ext; | ||
var name = _path$parse.name; | ||
var dir = _parsePath.dir; | ||
var base = _parsePath.base; | ||
var ext = _parsePath.ext; | ||
var name = _parsePath.name; | ||
return dir === '.' && name === _path2['default'].parse(filename).name; | ||
return dir === '.' && name === (0, _pathParse2['default'])(filename).name; | ||
} | ||
@@ -188,0 +192,0 @@ |
{ | ||
"name": "babel-plugin-react-transform", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Babel plugin to instrument React components with custom transforms", | ||
@@ -34,3 +34,6 @@ "main": "lib/index.js", | ||
"components" | ||
] | ||
], | ||
"dependencies": { | ||
"path-parse": "^1.0.5" | ||
} | ||
} |
@@ -17,2 +17,4 @@ # babel-plugin-react-transform | ||
[![react-transform channel on slack](https://img.shields.io/badge/slack-react--transform%40reactiflux-61DAFB.svg?style=flat-square)](http://www.reactiflux.com) | ||
## Demo | ||
@@ -194,2 +196,6 @@ | ||
## Discussion | ||
You can discuss React Transform and related projects in **#react-transform** channel on [Reactiflux Slack](http://reactiflux.com). | ||
## Patrons | ||
@@ -196,0 +202,0 @@ |
36456
15
632
211
1
+ Addedpath-parse@^1.0.5
+ Addedpath-parse@1.0.7(transitive)