mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Fix webpack exclude path on windows.
This commit is contained in:
parent
7cd6c0fbf2
commit
548b4ca208
1 changed files with 2 additions and 1 deletions
|
@ -163,7 +163,8 @@ function createWebpackConfig(defines, output) {
|
||||||
loaders: [
|
loaders: [
|
||||||
{
|
{
|
||||||
loader: 'babel-loader',
|
loader: 'babel-loader',
|
||||||
exclude: /src\/core\/(glyphlist|unicode)/, // babel is too slow
|
// babel is too slow
|
||||||
|
exclude: /src[\\\/]core[\\\/](glyphlist|unicode)/,
|
||||||
options: {
|
options: {
|
||||||
presets: skipBabel ? undefined : ['env'],
|
presets: skipBabel ? undefined : ['env'],
|
||||||
plugins: ['transform-es2015-modules-commonjs'],
|
plugins: ['transform-es2015-modules-commonjs'],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue