adm-zip needs extra config to work because of dynamic import for electron #3038
Replies: 2 comments 1 reply
-
#3042 once we support this is should be fixed |
Beta Was this translation helpful? Give feedback.
0 replies
-
@antoinepairet since #3042 is solved, can you try it on your project |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When one tries to bundle all dependencies (aka
externals
is an empty array),rspack
does not work withadm-zip
out of the box.rspack
tries to resolveoriginal-fs
because there is a dynamic import to cover theelectron
runtime.The issue comes from this file:
https://github.com/cthackers/adm-zip/blob/master/util/fileSystem.js
:There are two workarounds:
original-fs
as a dependencyoriginal-fs
in the external array in such a way thatrspack
ignores itNot sure if there should be an action point for
rspack
at this stage, maybe mentioning such a case in the docs?I assume other packages might use the same technique as the one
adm-zip
is using.Beta Was this translation helpful? Give feedback.
All reactions