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
If I understood your question correctly, you want to put all the code together with dependencies into one file which you can then read and run on vm2 without the need to pass require/dependencies into context manually. I think @vercel/ncc might work for you. Under the hood is a webpack with additional plugins that help you to properly build a script for nodejs into single file bundle with all the dependencies.
Hello,
I use vm2 with externals modules. This works fine on my developer machine within VS Code.
For production I use pm2 on Windows machine, which has no file access at runtime.
Is it possible to include the files from node_modules to vm2 before runtime?
Thanks
The text was updated successfully, but these errors were encountered: