From a080d8597317619ece43068b649a87ec05d6f60e Mon Sep 17 00:00:00 2001 From: Ken Gorab Date: Wed, 17 Mar 2021 23:19:10 -0400 Subject: [PATCH] Fixing config-overrides.js, since the optional-chaining syntax isn't accessible in netlify builds --- config-overrides.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config-overrides.js b/config-overrides.js index a541ccc..43a9198 100644 --- a/config-overrides.js +++ b/config-overrides.js @@ -9,7 +9,7 @@ module.exports = (webpackConfig) => { use: 'raw-loader' }) const catchall = rules[rules.length - 2] - const fileLoaderConfig = catchall.oneOf.find(({ loader }) => loader?.includes('file-loader')) + const fileLoaderConfig = catchall.oneOf.find(({ loader }) => loader && loader.includes('file-loader')) fileLoaderConfig.exclude.push(/\.md$/) return webpackConfig