Skip to content

Deopts - what does it mean? #35

Answered by smelukov
budarin asked this question in Q&A
Discussion options

You must be logged in to vote

deopt is deoptimization.
When webpack build a production bundle, it tries to optimize a bundle (concatenate modules, tree shake modules, and so on)
When webpack can't optimize a module it calls deoptimization. For example, webpack can't concatenate a module with the others if a module uses eval. Another example: webpack 4 can't do tree-shaking for non ES6 modules.
You can see a list of deoptimizations on the module detail page

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by smelukov
Comment options

You must be logged in to vote
1 reply
@smelukov
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants