diff --git a/src/runtime.ts b/src/runtime.ts index 719e1c8..c7c9b26 100644 --- a/src/runtime.ts +++ b/src/runtime.ts @@ -130,6 +130,8 @@ function resolve(parent?: string, specifier?: string) { } } function patch(id: string, exports: object) { + // @ts-expect-error + exports.__esModule = true; switch (id) { case 'node:fs': return patchFS(exports as typeof FS);