-
-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Closed
Description
Environment
node -v: 9,3,0npm -v: 5.5.1yarn --version(if you use Yarn): 1.5.1yarn list react-scripts(if you haven’t ejected): 1.1.1
Then, specify:
- Operating system: Linux Version 3.16.0-5-amd64, Compiled Add missing semver dependency #1 SMP Debian 3.16.51-3+deb8u1 (2018-01-08)
- Browser and version (if relevant): Google Chrome Version 65.0.3325.162 (Official Build) (64-bit)
Steps to Reproduce
I'm using a mirror-saga to build a redux-saga and firebase hosting to my React project.
More details here: https://github.com/ShMcK/mirror-saga
- I'm trying to build a project using
yarnandreact-app-env - Failed to minify the code from this file:
- I try to use `@babel/preset-env to fix it
- I write a
.babercfile but didn't work.
Expected Behavior
Compile my mirror-saga dependencies correctly.
Actual Behavior
$ firebase use default && react-app-env --env-file=.env.prod build
Now using alias default (opevere-game)
Creating an optimized production build...
Failed to compile.
Failed to minify the code from this file:
./node_modules/mirror-saga/src/index.js:4:28
Read more here: http://bit.ly/2tRViJ9
Done in 18.24s..babelrc file:
{
"presets": [
["@babel/preset-env", {
"targets": {
"esmodules": true,
"browsers": ["last 2 versions", "safari >= 7"]
}
}]
]
}error output:
$ head -n 10 ./node_modules/mirror-saga/src/index.js
import sagaMiddleware from './middleware'
import addEffect from './effects'
export default (options = {}) => {
const middlewares = options.middlewares || []
// overwrite defaults
return Object.assign(options, {
middlewares: middlewares.concat([sagaMiddleware]),
addEffect,
})Metadata
Metadata
Assignees
Labels
No labels