refactor: remove deprecated Webpack utils & validation escape hatch (#6740)

This commit is contained in:
Joshua Chen 2022-02-23 18:40:58 +08:00 committed by GitHub
parent 051380aa4b
commit 9562a5d203
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 7 additions and 90 deletions

View file

@ -188,13 +188,13 @@ module.exports = function (context, options) {
name: 'custom-docusaurus-plugin',
// highlight-start
configureWebpack(config, isServer, utils) {
const {getCacheLoader} = utils;
const {getJSLoader} = utils;
return {
module: {
rules: [
{
test: /\.foo$/,
use: [getCacheLoader(isServer), 'my-custom-webpack-loader'],
use: [getJSLoader(isServer), 'my-custom-webpack-loader'],
},
],
},