Skip to content

Commit

Permalink
Fixing config-overrides.js, since the optional-chaining syntax isn't …
Browse files Browse the repository at this point in the history
…accessible in netlify builds
  • Loading branch information
kengorab committed Mar 18, 2021
1 parent 3c82bff commit a080d85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a080d85

Please sign in to comment.