-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
Description
If existing project's .babelrc already uses babel-plugin-react-transform when it will throuw following error:
ERROR in ./~/react-styleguidist/src/index.js
Module build failed: ReferenceError: The plugin "babel-plugin-react-transform" collides with another of the same name
This can be fixed by setting BABEL_ENV for instance to BABEL_ENV=styleguidist in package.json. But I think this can be handled by this package itself. I'll try to submit a PR soon.
-"styleguide-server": "styleguidist server",
+"styleguide-server": "BABEL_ENV=styleguidist styleguidist server",