Browse Source

dont attempt to mark statements in external modules

contingency-plan
Rich-Harris 10 years ago
parent
commit
a6f7d96065
  1. 2
      src/Bundle.js

2
src/Bundle.js

@ -234,6 +234,8 @@ export default class Bundle {
const promise = Promise.resolve( importDeclaration.module || this.fetchModule( importDeclaration.source, module.id ) )
.then( module => {
if ( module.isExternal ) return null;
importDeclaration.module = module;
const exportDeclaration = module.exports[ importDeclaration.name ];
// TODO things like `export default a + b` don't apply here... right?

Loading…
Cancel
Save