Pre-compile to es5?
cheapsteak opened this issue · comments
Getting this error when using filenamify in a create-react-app app
Failed to minify the code from this file:
./node_modules/filenamify/index.js:13
Read more here: [http://bit.ly/2tRViJ9](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#npm-run-build-fails-to-minify)
We aim for Node.js, not the browser. You can find a more detailed explanation here sindresorhus/ama#446.
If you use Webpack, check out babel-engine-plugin
, which transpiles only the dependencies that needs to be transpiled.