chore(client): update gatsby
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
15a74a9ee7
commit
052769e69f
@ -137,24 +137,8 @@ exports.createPages = function createPages({ graphql, actions }) {
|
||||
|
||||
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
|
||||
|
||||
exports.onCreateWebpackConfig = ({ stage, rules, plugins, actions }) => {
|
||||
exports.onCreateWebpackConfig = ({ stage, plugins, actions }) => {
|
||||
actions.setWebpackConfig({
|
||||
module: {
|
||||
rules: [
|
||||
rules.js({
|
||||
/* eslint-disable max-len */
|
||||
exclude: modulePath => {
|
||||
return (
|
||||
/node_modules/.test(modulePath) &&
|
||||
!/(ansi-styles|chalk|strict-uri-encode|react-freecodecamp-search)/.test(
|
||||
modulePath
|
||||
)
|
||||
);
|
||||
}
|
||||
/* eslint-enable max-len*/
|
||||
})
|
||||
]
|
||||
},
|
||||
node: {
|
||||
fs: 'empty'
|
||||
},
|
||||
|
Reference in New Issue
Block a user