react-webpack-generators / generator-react-webpack

Yeoman generator for ReactJS and Webpack
http://newtriks.com/2013/12/31/automating-react-with-yeoman-and-grunt/
MIT License
2.88k stars 355 forks source link

Prevent two consecutive slashes in test imports #253 #254

Closed sthzg closed 8 years ago

sthzg commented 8 years ago

Wrapped Node's path.normalize() around paths that have componentPartPath as a part segment. For non-namespaced components this segment can be empty which lead to two consecutive slashes in various places.

Updated test suite to assert against the updated import statements in various files.

PR for #253