[Discussion] How to estimate the time complexity of the webpack build/compilation? #16116
suguanYang
started this conversation in
Ideas
Replies: 1 comment
-
|
very unlikely.. it depends on your webpack config a lot.. + |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Let's say we use typescript on a project, it has 1000 lines of code, and there have 10 esmodule dependencies, and we assume the base compilation complexity of the typescript loader is
n, and the per dependency bundle ism, can we estimate a approximate time complexity of webpack build this project to a single js file? Is there a formula like<line of code> * <loader complexity> + <number of dependecies> * <bundle complexity>so the final time complexity of this project would be1000 * n + 10 * mBeta Was this translation helpful? Give feedback.
All reactions