Skip to content

Commit

Permalink
fix: clone the data so that it does not expose mutability in getImpor…
Browse files Browse the repository at this point in the history
…tMap
  • Loading branch information
mac-alves committed Apr 23, 2024
1 parent f0f32d6 commit bf63eb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/import-maps.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ systemJSPrototype.prepareImport = function (doProcessScripts) {
};

systemJSPrototype.getImportMap = function () {
return importMap;
return JSON.parse(JSON.stringify(importMap));
};

if (hasDocument) {
Expand Down

0 comments on commit bf63eb5

Please sign in to comment.