@samitouri / QOS-React / commits / fc1f324cc4

Fix warnings script to work on Node 4

Dan Abramov committed Apr 5, 2017 at 19:01 UTC fc1f324cc4c83e38b618a1cb076cd704bf8867ea
1 file changed +1 -1
scripts/print-warnings/print-warnings.js
+1 -1
@@ -67,7 +67,7 @@ const sourcePaths = Bundles.bundles
67 bundle.bundleTypes.indexOf(Bundles.bundleTypes.FB_DEV) !== -1 ||
68 bundle.bundleTypes.indexOf(Bundles.bundleTypes.FB_PROD) !== -1
69 )
70 - .reduce((allPaths, bundle) => [...allPaths, ...bundle.paths], []);
70 + .reduce((allPaths, bundle) => allPaths.concat(bundle.paths), []);
71
72 gs(sourcePaths).pipe(
73 through.obj(transform, cb => {