Skip to content

Commit

Permalink
fix: add more node subpath exports to built-in modules
Browse files Browse the repository at this point in the history
ref: #34
  • Loading branch information
pi0 committed May 5, 2022
1 parent 35f31a4 commit 8ed02ad
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
@@ -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[]) {
Expand Down

0 comments on commit 8ed02ad

Please sign in to comment.