We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 143c091 commit fc388c5Copy full SHA for fc388c5
1 file changed
src/index.js
@@ -173,14 +173,12 @@ export default class Bundler {
173
this._addToDone(tracedUnit.moduleId);
174
this._addToDone(tracedUnit.defined);
175
176
- const {moduleId, packageName} = tracedUnit;
177
-
178
// mark todo. beware we didn't check whether the id is in _moduleId_done.
179
// they will be checked during resolve phase.
180
tracedUnit.deps.forEach(d => {
181
// ignore relative dep on local source
182
- if (!packageName && moduleId.startsWith('.')) return;
183
- this._moduleIds_todo.add(resolveModuleId(moduleId, d));
+ if (!tracedUnit.packageName && d.startsWith('.')) return;
+ this._moduleIds_todo.add(resolveModuleId(tracedUnit.moduleId, d));
184
});
185
186
const bundle = this.bundleOf(tracedUnit);
0 commit comments