You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support for other devtool options for development mode #175
Support more options for devtool, in particular, the development friendly ones
Feature Use Case
Currently, only the slowest options for devtool are supported, but this makes development builds take longer than they need to and it would be nice to be able to use the cheaper options for devtool
Unfortunately, support for others is not possible for technical reasons, for example eval* can't be handled terser, also many of devtool for development mode, where unnecessary use minimizer. Anyway i mark this as enhancement if somebody have ideas how it can be implemented. PR welcome.
@evilebottnawi Terser can minify new Function(...) in some situations, given the unsafe_Function option is enabled. If required, we can minify eval as well.
Activity
alexander-akait commentedon Oct 19, 2019
Unfortunately, support for others is not possible for technical reasons, for example
eval*can't be handledterser, also many of devtool for development mode, where unnecessary use minimizer. Anyway i mark this asenhancementif somebody have ideas how it can be implemented. PR welcome.daveisfera commentedon Oct 19, 2019
That makes sense. Go ahead and close this out, if there's not a good way to do this.
fabiosantoscode commentedon Dec 16, 2019
@evilebottnawi is Terser not behaving as it should in the face of
evalfor some reason? Please do let me know.alexander-akait commentedon Dec 17, 2019
@fabiosantoscode because we have code + source maps inside
evalfunction, so it is normal what terser doesn't handle that 😄fabiosantoscode commentedon Dec 17, 2019
@evilebottnawi Terser can minify
new Function(...)in some situations, given theunsafe_Functionoption is enabled. If required, we can minify eval as well.alexander-akait commentedon Dec 17, 2019
@fabiosantoscode it will be great 😄 , just do simple example webpack config with
devtool: 'eval'and look how at this