From ea29ec83e1bb4ea44d71cccc451c6b9374e10fb9 Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Tue, 29 May 2018 17:38:03 -0700 Subject: [PATCH] Fix webpack exclude path on windows. --- gulpfile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 99ca22133ca44..0248abdbe2435 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -150,7 +150,8 @@ function createWebpackConfig(defines, output) { loaders: [ { loader: 'babel-loader', - exclude: /src\/core\/(glyphlist|unicode)/, // babel is too slow + // babel is too slow + exclude: /src[\\\/]core[\\\/](glyphlist|unicode)/, options: { presets: pdfjsNext ? undefined : ['env'], plugins: ['transform-es2015-modules-commonjs'],