Skip to content

Commit

Permalink
fix: don't throw if module subpath not found (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jun 16, 2022
1 parent af777cb commit 37d5bcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resolve.ts
Expand Up @@ -8,7 +8,7 @@ import { pcall, BUILTIN_MODULES } from './_utils'
const DEFAULT_CONDITIONS_SET = new Set(['node', 'import'])
const DEFAULT_URL = pathToFileURL(process.cwd())
const DEFAULT_EXTENSIONS = ['.mjs', '.cjs', '.js', '.json']
const NOT_FOUND_ERRORS = new Set(['ERR_MODULE_NOT_FOUND', 'ERR_UNSUPPORTED_DIR_IMPORT', 'MODULE_NOT_FOUND'])
const NOT_FOUND_ERRORS = new Set(['ERR_MODULE_NOT_FOUND', 'ERR_UNSUPPORTED_DIR_IMPORT', 'MODULE_NOT_FOUND', 'ERR_PACKAGE_PATH_NOT_EXPORTED'])

export interface ResolveOptions {
url?: string | URL | (string | URL)[]
Expand Down

0 comments on commit 37d5bcc

Please sign in to comment.