Fix warnings script to work on Node 4

This commit is contained in:
Dan Abramov
2017-04-05 19:01:09 +01:00
committed by GitHub
parent 398d449c48
commit fc1f324cc4
+1 -1
View File
@@ -67,7 +67,7 @@ const sourcePaths = Bundles.bundles
bundle.bundleTypes.indexOf(Bundles.bundleTypes.FB_DEV) !== -1 ||
bundle.bundleTypes.indexOf(Bundles.bundleTypes.FB_PROD) !== -1
)
.reduce((allPaths, bundle) => [...allPaths, ...bundle.paths], []);
.reduce((allPaths, bundle) => allPaths.concat(bundle.paths), []);
gs(sourcePaths).pipe(
through.obj(transform, cb => {