Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions beta/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,24 @@ module.exports = {
);
}

const {IgnorePlugin} = require('webpack');
config.plugins.push(
new IgnorePlugin({
checkResource(resource, context) {
if (
/\/eslint\/lib\/rules$/.test(context) &&
/\.\/[\w-]+(\.js)?$/.test(resource)
) {
// Skips imports of built-in rules that ESLint
// tries to carry into the bundle by default.
// We only want the engine and the React rules.
return true;
}
return false;
},
})
);

// Add our custom markdown loader in order to support frontmatter
// and layout
config.module.rules.push({
Expand Down