Skip to content

Commit b18436f

Browse files
Fix module id variables
1 parent 47cf7c3 commit b18436f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ exports.astNodeVisitor = {
339339
);
340340

341341
if (getModuleInfo(absolutePath, parser)) {
342-
const moduleId = moduleInfos[absolutePath];
342+
const moduleId = moduleInfos[absolutePath].id;
343343

344344
const exportName = identifier.defaultImport
345345
? getDefaultExportName(absolutePath)
@@ -407,7 +407,7 @@ exports.astNodeVisitor = {
407407
);
408408

409409
if (getModuleInfo(rel, parser)) {
410-
const moduleId = moduleInfos[rel];
410+
const moduleId = moduleInfos[rel].id;
411411

412412
const name =
413413
exportName === 'default'
@@ -463,7 +463,7 @@ exports.astNodeVisitor = {
463463
);
464464

465465
if (getModuleInfo(absolutePath, parser)) {
466-
const moduleId = moduleInfos[absolutePath];
466+
const moduleId = moduleInfos[absolutePath].id;
467467

468468
const exportName = identifier.defaultImport
469469
? getDefaultExportName(absolutePath)

0 commit comments

Comments
 (0)