Merge pull request #9759 from brendandahl/win-exclude-path

Fix webpack exclude path on windows.
This commit is contained in:
Tim van der Meij 2018-05-30 22:21:26 +02:00 committed by GitHub
commit c2cbeaa34d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -163,7 +163,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: skipBabel ? undefined : ['env'],
plugins: ['transform-es2015-modules-commonjs'],