From 5b2c1f34d3d02bbe94273f3d728697fe72aa59f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Sat, 21 Mar 2020 14:39:22 -0400 Subject: [PATCH] chore: fix build-babel exclude in gulpfile (#11293) --- Gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gulpfile.js b/Gulpfile.js index e1314fe0ca..7402a87be0 100644 --- a/Gulpfile.js +++ b/Gulpfile.js @@ -60,7 +60,7 @@ function buildBabel(exclude, sourcesGlob = defaultSourcesGlob) { let stream = gulp.src(sourcesGlob, { base: __dirname }); if (exclude) { - const filters = exclude.map(p => `!**/${p}/**`); + const filters = exclude.map(p => `!**/${p.src}/**`); filters.unshift("**"); stream = stream.pipe(filter(filters)); }