Closed
Description
Hi,
We started using esbuild, a new super fast JS compiler, and it doesn't support or intends to support dynamic requires. This means we can't use pidtree
due to this line:
Line 36 in 5ebe846
Would you consider changing it? One solution would be to replace it with an explicit switch case with the file names, or even add something like this (rough code):
var methodToRequireFn = {
ps: () => require("./ps"),
wmic: () => require("./wmic")
};
Thanks!
Metadata
Metadata
Assignees
Labels
No labels