unclechett
unclechett

Reputation: 71

Webpack 3 no scope hoisting and no fallback output with --display-optimization-bailout cli flag

upgraded to webpack 3 and using the ModuleConcatenationPlugin plugin (followed instructions webpack 3: Official Release!!). i'm not seeing any difference in a diff of my bundle with the plugin added vs without and still seeing all the function closures.

added the --display-optimization-bailout flag to for output on why hoisting was prevented, but i don't see any output.

looked around the webpack source a bit and it appears that bailout reasons are not being set because module.meta.harmonyModule is falsy, not sure why... https://github.com/webpack/webpack/blob/master/lib/optimize/ModuleConcatenationPlugin.js#L42

anyone else have a simliar issue?

Upvotes: 7

Views: 942

Answers (0)

Related Questions