Skip to content

Commit fc388c5

Browse files
committed
fix: fix typo
1 parent 143c091 commit fc388c5

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,12 @@ export default class Bundler {
173173
this._addToDone(tracedUnit.moduleId);
174174
this._addToDone(tracedUnit.defined);
175175

176-
const {moduleId, packageName} = tracedUnit;
177-
178176
// mark todo. beware we didn't check whether the id is in _moduleId_done.
179177
// they will be checked during resolve phase.
180178
tracedUnit.deps.forEach(d => {
181179
// ignore relative dep on local source
182-
if (!packageName && moduleId.startsWith('.')) return;
183-
this._moduleIds_todo.add(resolveModuleId(moduleId, d));
180+
if (!tracedUnit.packageName && d.startsWith('.')) return;
181+
this._moduleIds_todo.add(resolveModuleId(tracedUnit.moduleId, d));
184182
});
185183

186184
const bundle = this.bundleOf(tracedUnit);

0 commit comments

Comments
 (0)