From cc35a00cb40d5a3f0b10dea3a551ac88b3c7f257 Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Tue, 21 Jul 2020 11:46:58 -0700 Subject: [PATCH] endo/import s/root/location --- packages/endo/src/import.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/endo/src/import.js b/packages/endo/src/import.js index 65c2d673e2..8366e7cdf5 100644 --- a/packages/endo/src/import.js +++ b/packages/endo/src/import.js @@ -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);