rsnext/test/integration/chunking/next.config.js
Alex Castle 3970a26b92 Tweaks and test for library chunks fixes (#8482)
* Adjust lib chunk naming algorithm and prevent duplicate react-dom

* Remove alias for react-dom and update separator replacement logic

* Add comment to webpack-config

* Add integration test for react-dom duplication

* Switch to using hash for lib chunk names

* remove extra file from PR

* Remove another extraneous change

* Remove test based on lib chunk name

* Update index.test.js
2019-08-23 10:28:48 -04:00

17 lines
381 B
JavaScript

const BundleAnalyzerPlugin = require('webpack-bundle-analyzer')
.BundleAnalyzerPlugin
module.exports = {
experimental: {
granularChunks: true
},
webpack (config) {
config.plugins = config.plugins || []
config.plugins.push(
new BundleAnalyzerPlugin({
analyzerMode: 'disabled',
generateStatsFile: true
})
)
return config
}
}