diff --git a/src/ExportMap.js b/src/ExportMap.js index b27b553ab..53091e466 100644 --- a/src/ExportMap.js +++ b/src/ExportMap.js @@ -383,12 +383,14 @@ ExportMap.parse = function (path, content, context) { const getter = thunkFor(p, context); m.imports.set(p, { getter, - source: { + declarations: new Set([{ + source: { // capturing actual node reference holds full AST in memory! - value: source.value, - loc: source.loc, - }, - importedSpecifiers, + value: source.value, + loc: source.loc, + }, + importedSpecifiers, + }]), }); }