Do you want to request a feature or report a bug?
What is the current behavior?
In development when using
require.ensure the incremental builds take ~8.5s. The majority of the time is during advanced module optimization. When removing
require.ensure the incremental builds go down to ~1.5s.
If this is a feature request, what is motivation or use case for changing the behavior?
This would greatly speed up development time if we could turn off the optimization in development. A current workaround is to possibly use a generated version of our files with
require.ensure removed. (https://github.com/knpwrs/babel-plugin-remove-webpack helped with this process) Idealy this is a switch that could be turned off/on from the webpack config. I doubt I am alone in needing this feature as many others are wanting to decrease incremental build times. If you this is something you think is reasonable and doable I’d gladly submit a PR if you point me in the right direction. Thanks!
Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
Node Version: v6.9.4
Wepback Version: 2.2.0