依赖包分析

This commit is contained in:
tangly1024
2022-03-28 16:45:17 +08:00
parent 69070ebbca
commit 2c1cdd324b
2 changed files with 6 additions and 2 deletions

View File

@@ -1,4 +1,7 @@
module.exports = {
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true'
})
module.exports = withBundleAnalyzer({
future: {
webpack5: true
},
@@ -29,4 +32,4 @@ module.exports = {
}
return config
}
}
})