Skip to content

Commit f20788c

Browse files
committed
Revert "define webpack loader.exclude with array for extensibility"
This reverts commit 50b0a47.
1 parent 0a6fb37 commit f20788c

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

packages/gatsby/src/utils/webpack.config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ module.exports = async (
384384
// Common config for every env.
385385
config.loader(`js`, {
386386
test: /\.jsx?$/, // Accept either .js or .jsx files.
387-
exclude: [/(node_modules|bower_components)/],
387+
exclude: /(node_modules|bower_components)/,
388388
loader: `babel`,
389389
query: babelConfig,
390390
})
@@ -421,7 +421,7 @@ module.exports = async (
421421
case `develop`:
422422
config.loader(`css`, {
423423
test: /\.css$/,
424-
exclude: [/\.module\.css$/],
424+
exclude: /\.module\.css$/,
425425
loaders: [`style`, `css`, `postcss`],
426426
})
427427

@@ -446,7 +446,7 @@ module.exports = async (
446446
case `build-css`:
447447
config.loader(`css`, {
448448
test: /\.css$/,
449-
exclude: [/\.module\.css$/],
449+
exclude: /\.module\.css$/,
450450
loader: extractBuildCss.extract([`css?minimize`, `postcss`]),
451451
})
452452

@@ -476,7 +476,7 @@ module.exports = async (
476476

477477
config.loader(`css`, {
478478
test: /\.css$/,
479-
exclude: [/\.module\.css$/],
479+
exclude: /\.module\.css$/,
480480
loader: `null`,
481481
})
482482

@@ -501,7 +501,7 @@ module.exports = async (
501501

502502
config.loader(`css`, {
503503
test: /\.css$/,
504-
exclude: [/\.module\.css$/],
504+
exclude: /\.module\.css$/,
505505
// loader: `null`,
506506
loader: extractBuildJavascript.extract([`css`]),
507507
})

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ axios@^0.17.1:
549549
follow-redirects "^1.2.5"
550550
is-buffer "^1.1.5"
551551

552-
"axios@github:contentful/axios#fix/https-via-http-proxy":
552+
axios@contentful/axios#fix/https-via-http-proxy:
553553
version "0.17.1"
554554
resolved "https://codeload.github.com/contentful/axios/tar.gz/4b06f4a63db3ac16c99f7c61b584ef0e6d11f1af"
555555
dependencies:
@@ -11307,9 +11307,9 @@ [email protected]:
1130711307
mdast-util-to-hast "^2.1.1"
1130811308
xtend "^4.0.1"
1130911309

11310-
remark-math@^0.2.4:
11311-
version "0.2.4"
11312-
resolved "https://registry.yarnpkg.com/remark-math/-/remark-math-0.2.4.tgz#f027cf7f984108777c23425905bf0cbfeeeddda1"
11310+
remark-math@^1.0.3:
11311+
version "1.0.3"
11312+
resolved "https://registry.yarnpkg.com/remark-math/-/remark-math-1.0.3.tgz#e8cda5af8cd8a85fc7782ccbecf0261943c29b9a"
1131311313
dependencies:
1131411314
trim-trailing-lines "^1.1.0"
1131511315

0 commit comments

Comments
 (0)