Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/parseUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function parseBundle(bundlePath, opts) {

if (firstVariableDeclaration) {
for (const declaration of firstVariableDeclaration.declarations) {
if (declaration.init) {
if (declaration.init && isModulesList(declaration.init)) {
state.locations = getModulesLocations(declaration.init);

if (state.locations) {
Expand Down
1 change: 1 addition & 0 deletions test/bundles/validBundleWithIIFE.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(()=>{const e=console.log("foo");})();
3 changes: 3 additions & 0 deletions test/bundles/validBundleWithIIFE.modules.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"modules": {}
}