Skip to content

Commit

Permalink
Add envify transform to scheduler package (#13766)
Browse files Browse the repository at this point in the history
This package uses `process.env.NODE_ENV` but does not transform its usage during bundling like the rest of the React libraries do. This causes issues when `process` is not defined globally.
  • Loading branch information
mridgway authored and acdlite committed Oct 4, 2018
1 parent acc7f40 commit 605ab10
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/scheduler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
},
"homepage": "https://reactjs.org/",
"dependencies": {
"loose-envify": "^1.1.0",
"object-assign": "^4.1.1"
},
"files": [
Expand All @@ -23,5 +24,10 @@
"tracing-profiling.js",
"cjs/",
"umd/"
]
],
"browserify": {
"transform": [
"loose-envify"
]
}
}

0 comments on commit 605ab10

Please sign in to comment.