webpack可视化资源分析工具
npm install webpack-bundle-analyzer -D
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
module.exports = defineConfig({
configureWebpack:{
plugins: [
new BundleAnalyzerPlugin()
],
},
transpileDependencies: true,
})