Skip to content

Commit

Permalink
endo/import s/root/location
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal committed Jul 21, 2020
1 parent 67f69dc commit cc35a00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/endo/src/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const decoder = new TextDecoder();

const resolve = (rel, abs) => new URL(rel, abs).toString();

const makeImportHookMaker = (read, rootLocation) => packageLocation => {
packageLocation = resolve(packageLocation, rootLocation);
const makeImportHookMaker = (read, baseLocation) => packageLocation => {
packageLocation = resolve(packageLocation, baseLocation);
return async moduleSpecifier => {
const moduleLocation = resolve(moduleSpecifier, packageLocation);
const moduleBytes = await read(moduleLocation);
Expand Down

0 comments on commit cc35a00

Please sign in to comment.