mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix warnings script to work on Node 4
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user