server: plugin init cleanups

This commit is contained in:
Koushik Dutta
2024-03-11 12:56:21 -07:00
parent 3fb519e3b2
commit 441361e1ec
9 changed files with 34 additions and 50 deletions

View File

@@ -1,10 +1,8 @@
import v8 from 'v8';
import worker_threads from "worker_threads";
import { EventEmitter } from "ws";
import { RpcMessage, RpcPeer } from "../../rpc";
import { RuntimeWorker, RuntimeWorkerOptions } from "./runtime-worker";
import worker_threads from "worker_threads";
import path from 'path';
import { getPluginNodePath } from "../plugin-npm-dependencies";
import v8 from 'v8';
export class NodeThreadWorker extends EventEmitter implements RuntimeWorker {
terminated: boolean;