Closed alavkx closed 6 years ago
What's the exact difference between the two build? Only removal of CommonChunksPlugin
? That would be a bug for Webpack, as CommonChunks is a late stage optimization/reorganization of the chunks. If it drops code you should file a bug in the webpack repo.
Also: what are you trying to achieve with minChunks: Infinity
? From the docs: Passing Infinity
just creates the commons chunk, but moves no modules into it.
Also also: CommonChunksPlugin
was removed from Webpack 4, which will soon-ish be the target of aurelia-webpack-plugin
.
I'll double check that this isn't a configuration error and open a bug with webpack. CommonChunks will be removed and changed to part of the config but I presume under the hood it will be using similar code.
@alavkx what did double checking revealed? can we close this?
I haven't gotten to work on this in a bit, will re-open when I get back to it.
I'm submitting a bug report
Library Version: 2.0.0-rc.5
Operating System: Windows 10
Node Version: 9.4.0
NPM Version: 5.6.0
Webpack Version: 3.10.0
Language: Typescript 2.6.2
Current behavior: Bundle does not include application code when used with CommonsChunkPlugin![image](https://user-images.githubusercontent.com/20377612/36178944-8eefd276-10e8-11e8-9328-55ae7caade33.png)
Expected/desired behavior: Bundle includes application code![image](https://user-images.githubusercontent.com/20377612/36178887-6287574a-10e8-11e8-8946-b4ff0602c6fe.png)
webpack.config.js
UnifiedScheduling.cshtml