@@ -229,13 +229,15 @@ export default class ExportMap {
229
229
if ( this . reexports . has ( name ) ) return true
230
230
231
231
// default exports must be explicitly re-exported (#328)
232
- if ( name !== 'default' ) for ( let dep of this . dependencies . values ( ) ) {
233
- let innerMap = dep ( )
232
+ if ( name !== 'default' ) {
233
+ for ( let dep of this . dependencies . values ( ) ) {
234
+ let innerMap = dep ( )
234
235
235
- // todo: report as unresolved?
236
- if ( ! innerMap ) continue
236
+ // todo: report as unresolved?
237
+ if ( ! innerMap ) continue
237
238
238
- if ( innerMap . has ( name ) ) return true
239
+ if ( innerMap . has ( name ) ) return true
240
+ }
239
241
}
240
242
241
243
return false
@@ -267,18 +269,20 @@ export default class ExportMap {
267
269
268
270
269
271
// default exports must be explicitly re-exported (#328)
270
- if ( name !== 'default' ) for ( let dep of this . dependencies . values ( ) ) {
271
- let innerMap = dep ( )
272
- // todo: report as unresolved?
273
- if ( ! innerMap ) continue
274
-
275
- // safeguard against cycles
276
- if ( innerMap . path === this . path ) continue
277
-
278
- let innerValue = innerMap . hasDeep ( name )
279
- if ( innerValue . found ) {
280
- innerValue . path . unshift ( this )
281
- return innerValue
272
+ if ( name !== 'default' ) {
273
+ for ( let dep of this . dependencies . values ( ) ) {
274
+ let innerMap = dep ( )
275
+ // todo: report as unresolved?
276
+ if ( ! innerMap ) continue
277
+
278
+ // safeguard against cycles
279
+ if ( innerMap . path === this . path ) continue
280
+
281
+ let innerValue = innerMap . hasDeep ( name )
282
+ if ( innerValue . found ) {
283
+ innerValue . path . unshift ( this )
284
+ return innerValue
285
+ }
282
286
}
283
287
}
284
288
@@ -302,16 +306,18 @@ export default class ExportMap {
302
306
}
303
307
304
308
// default exports must be explicitly re-exported (#328)
305
- if ( name !== 'default' ) for ( let dep of this . dependencies . values ( ) ) {
306
- let innerMap = dep ( )
307
- // todo: report as unresolved?
308
- if ( ! innerMap ) continue
309
+ if ( name !== 'default' ) {
310
+ for ( let dep of this . dependencies . values ( ) ) {
311
+ let innerMap = dep ( )
312
+ // todo: report as unresolved?
313
+ if ( ! innerMap ) continue
309
314
310
- // safeguard against cycles
311
- if ( innerMap . path === this . path ) continue
315
+ // safeguard against cycles
316
+ if ( innerMap . path === this . path ) continue
312
317
313
- let innerValue = innerMap . get ( name )
314
- if ( innerValue !== undefined ) return innerValue
318
+ let innerValue = innerMap . get ( name )
319
+ if ( innerValue !== undefined ) return innerValue
320
+ }
315
321
}
316
322
317
323
return undefined
0 commit comments