Browse Source

mark default export declarations as isUsed, as well as named ones

contingency-plan
Rich-Harris 9 years ago
parent
commit
1d6737157e
  1. 3
      src/Module.js

3
src/Module.js

@ -395,11 +395,12 @@ export default class Module {
}); });
} }
exportDeclaration.isUsed = true;
if ( importDeclaration.name === 'default' ) { if ( importDeclaration.name === 'default' ) {
return exportDeclaration.statement.mark(); return exportDeclaration.statement.mark();
} }
exportDeclaration.isUsed = true;
return module.mark( exportDeclaration.localName ); return module.mark( exportDeclaration.localName );
}); });
} }

Loading…
Cancel
Save