Skip to content

Commit

Permalink
feat: Add createEmptyImportMap()
Browse files Browse the repository at this point in the history
  • Loading branch information
jespertheend committed Jul 17, 2022
1 parent 8b56327 commit 2ee0b0e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,17 @@ export function parseImportMap(input, baseUrl) {
};
}

/**
* Creates an empty import map.
*/
export function createEmptyImportMap() {
/** @type {ParsedImportMap} */
const importMap = {
imports: {},
};
return importMap;
}

/**
* @param {Object.<string, string>} originalMap
* @param {URL} baseUrl
Expand Down

0 comments on commit 2ee0b0e

Please sign in to comment.