Replies: 1 comment 2 replies
-
We cannot avoid using third-party modules during development. These modules usually support CJS, so we don't need to rebuild and bundle them, we only need to deal with our own code. This is called "externalization". Of course, we can also bundled them, but you can imagine how big the final chunk will be, which is extremely unfavorable for module loading. However, these modules are required by the app, so they must be installed in |
Beta Was this translation helpful? Give feedback.
2 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.
-
Hey! I would like to ask you to explain why do we need to "externalize" dependencies from main/preload/renderer. I read two sections in the docs (1 , 2) and it is still not fully clear, for example, why do we need to put real app's dependencies to
devDependencies
.I would appreciate if you provide more detailed examples or cases
Beta Was this translation helpful? Give feedback.
All reactions