diff --git a/packages/plugos/environments/node_worker.ts b/packages/plugos/environments/node_worker.ts index 0ce2e3a..fc60d80 100644 --- a/packages/plugos/environments/node_worker.ts +++ b/packages/plugos/environments/node_worker.ts @@ -28,6 +28,9 @@ let consoleLogger = new ConsoleLogger((level, message) => { let loadedModules = new Map(); +// HACK to make Mattermost client work... +loadedModules.set("form-data", require(`${nodeModulesPath}/form-data`)); + let vm = new VM({ sandbox: { // Exposing some "safe" APIs