webpack5 config snippets and types helper function.
yarn add -D webpack-config-copilot
// webpack.config.js
const { defineConfig } = require('webpack-config-copilot')
module.exports = defineConfig({
// enjoy config snippets and type support
module: {
rules: [],
},
})