From 8ed02adfe8231a6fe1087d126f2f268e5f82d7c6 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Thu, 5 May 2022 11:58:43 +0200 Subject: [PATCH] fix: add more node subpath exports to built-in modules ref: #34 --- src/utils.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 1e95139f..e85228ef 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,7 +1,15 @@ import { Module } from 'module' export const NodeBuiltinModules = ([] as string[]).concat(Module.builtinModules, [ - 'fs/promises' + 'assert/strict', + 'fs/promises', + 'path/posix', + 'path/win32', + 'stream/consumers', + 'stream/promises', + 'stream/web', + 'timers/promises', + 'util/types' ]) export function mapArrToVal (val: any, arr: any[]) {