You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to use this module inside of a webpack config file where I have to synchronously resolve all of the values inside of module.exports. Is there any way or workaround for getting the manifest entries synchronously?
The text was updated successfully, but these errors were encountered:
Not out of the box, unfortunately. The underlying module that reads the JAR file only has an async API, so would need to move off ls-archive for that functionality. (Good chance there is something better to use these days anyway.)
One workaround would be to put the code that calls jarfile in its own JS file, and call it from your webpack config using spawnSync(). But if you are going to be calling out to another binary and parsing its output there may be other tools to use.
That said, maybe WebPack supports async configuration already? webpack/webpack#2697
I'd like to use this module inside of a webpack config file where I have to synchronously resolve all of the values inside of module.exports. Is there any way or workaround for getting the manifest entries synchronously?
The text was updated successfully, but these errors were encountered: