@samitouri / QOS-React / commits / 605ab10a4a

Add envify transform to scheduler package (#13766)

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.

Michael Ridgway committed Oct 4, 2018 at 14:18 UTC 605ab10a4a40ed8db5f5a1438b08cfa6e36a5c80
1 file changed +7 -1
packages/scheduler/package.json
+7 -1
@@ -13,6 +13,7 @@
13 },
14 "homepage": "https://reactjs.org/",
15 "dependencies": {
16 + "loose-envify": "^1.1.0",
17 "object-assign": "^4.1.1"
18 },
19 "files": [
@@ -23,5 +24,10 @@
24 "tracing-profiling.js",
25 "cjs/",
26 "umd/"
26 - ]
27 + ],
28 + "browserify": {
29 + "transform": [
30 + "loose-envify"
31 + ]
32 + }
33 }