Skip to content

Commit

Permalink
fix(resolve): don't normalize falsy urls
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Oct 27, 2021
1 parent 9240f07 commit 9fdf8f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/resolve.ts
Expand Up @@ -48,6 +48,7 @@ function _resolve (id: string, opts: ResolveOptions = {}): string {

// Search paths
const urls: URL[] = (Array.isArray(opts.url) ? opts.url : [opts.url])
.filter(Boolean)
.map(u => new URL(normalizeid(u.toString())))
if (!urls.length) {
urls.push(DEFAULT_URL)
Expand Down

0 comments on commit 9fdf8f6

Please sign in to comment.