problem description
the script packaged by webpack is temporarily stored in memory in the form of buffer. What should I do if I want to execute this script directly?
the environmental background of the problems and what methods you have tried
try to use child_process.execFile, to find that the first parameter can only be a path, which is not applicable.
I have tried to implement it in new Function (buffer) / eval mode, and it is successful. I hope there is a better way to solve this problem.