Skip to content

Commit

Permalink
fix(builtins): fix issue where packages with identical names to built…
Browse files Browse the repository at this point in the history
… in modules wasn't resolvable. Closes #46
  • Loading branch information
wessberg committed Nov 17, 2019
1 parent 91c3943 commit fe266f6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
18 changes: 0 additions & 18 deletions src/util/module/module-util.ts

This file was deleted.

4 changes: 0 additions & 4 deletions src/util/resolve-id/resolve-id.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {IResolveModuleOptions} from "./i-resolve-module-options";
import {isBuiltInModule} from "../module/module-util";
import {ExtendedResolvedModule} from "../../service/cache/resolve-cache/i-resolve-cache";

/**
Expand All @@ -11,8 +10,5 @@ export function resolveId({resolveCache, ...options}: IResolveModuleOptions): Ex
// Don't proceed if there is no parent (in which case this is an entry module)
if (options.parent == null) return null;

// Don't attempt to load built-in modules
if (isBuiltInModule(options.id)) return null;

return resolveCache.get(options);
}

0 comments on commit fe266f6

Please sign in to comment.