Skip to content

Commit

Permalink
Not needed here anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenwerk committed Apr 10, 2024
1 parent 39281f0 commit d337127
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/runtime-common/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,6 @@ export class Loader {
private modules = new Map<string, Module>();
private urlHandlers: RequestHandler[] = [maybeHandleScopedCSSRequest];

// use a tuple array instead of a map so that we can support reversing
// different resolutions back to the same URL. the resolution that we apply
// will be in order of precedence. consider 2 realms in the same server
// wanting to communicate via localhost resolved URL's, but also a browser
// that talks to the realm (we need to reverse the resolution in the server.ts
// to figure out which realm the request is talking to)
private urlMappings: [string, string][] = [];
private moduleShims = new Map<string, Record<string, any>>();
private identities = new WeakMap<
Function,
Expand All @@ -129,7 +122,6 @@ export class Loader {
static cloneLoader(loader: Loader): Loader {
let clone = new Loader(loader.fetchImplementation, loader.resolveImport);
clone.urlHandlers = loader.urlHandlers;
clone.urlMappings = loader.urlMappings;
for (let [moduleIdentifier, module] of loader.moduleShims) {
clone.shimModule(moduleIdentifier, module);
}
Expand Down

0 comments on commit d337127

Please sign in to comment.