Expand support for Export declarations with source parameters

This commit is contained in:
theit8514 2022-01-10 15:54:57 -05:00
parent f742782e4a
commit dcc9c6955a

@ -151,6 +151,24 @@ function _getScriptUrls(script: Script, scripts: Script[], seen: Script[]): Scri
start: node.source.range[0] + 1,
end: node.source.range[1] - 1
});
},
ExportNamedDeclaration(node: any) {
if (node.source) {
importNodes.push({
filename: node.source.value,
start: node.source.range[0] + 1,
end: node.source.range[1] - 1
});
}
},
ExportAllDeclaration(node: any) {
if (node.source) {
importNodes.push({
filename: node.source.value,
start: node.source.range[0] + 1,
end: node.source.range[1] - 1
});
}
}
});
// Sort the nodes from last start index to first. This replaces the last import with a blob first,