Friday 21 September 2018

How to generate binaries for some modules in the dependencies?

I'm trying the pkg module to see if I can generate a standalone executable for my Node.js app, but some modules are loaded conditionally like it's shown below, and the app throws and exception at runtime saying that those modules are missing:var foo = require(bar ? "module1" : "module2"); How can I generate binaries for those modules in order to ship them with my app?

Submitted September 22, 2018 at 01:38AM by rraallvv

No comments:

Post a Comment