Skip to content

Commit

Permalink
fix(compartment-mapper): Elide source URL from archived MJS
Browse files Browse the repository at this point in the history
This is necessary for the creation of canonical archives, that do not
vary depending on the locations of the sources on the machine that
created the archive.

Ideally, these source URLs are produced after the archive has
been canonicalized.
  • Loading branch information
kriskowal committed May 10, 2021
1 parent c8ada3e commit ecc65b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/compartment-mapper/src/parse-archive-mjs.js
Expand Up @@ -9,11 +9,11 @@ const textDecoder = new TextDecoder();
export const parseArchiveMjs = async (
bytes,
_specifier,
location,
_location,
_packageLocation,
) => {
const source = textDecoder.decode(bytes);
const record = new StaticModuleRecord(source, location);
const record = new StaticModuleRecord(source);
const pre = encodeSyrup(record);
return {
parser: 'premjs',
Expand Down

0 comments on commit ecc65b5

Please sign in to comment.