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
Uh oh!
There was an error while loading. Please reload this page.
-
When one tries to bundle all dependencies (aka
externalsis an empty array),rspackdoes not work withadm-zipout of the box.rspacktries to resolveoriginal-fsbecause there is a dynamic import to cover theelectronruntime.The issue comes from this file:
https://github.com/cthackers/adm-zip/blob/master/util/fileSystem.js:There are two workarounds:
original-fsas a dependencyoriginal-fsin the external array in such a way thatrspackignores itNot sure if there should be an action point for
rspackat this stage, maybe mentioning such a case in the docs?I assume other packages might use the same technique as the one
adm-zipis using.Beta Was this translation helpful? Give feedback.
All reactions