Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' into gh-112
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Sep 18, 2016
2 parents 3ebe287 + c998c3d commit 289fa23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export default function transform ( code, id, isEntry, ignoreGlobal, customNamed
}
});

if ( !sources.length && !uses.module && !uses.exports && ( ignoreGlobal || !uses.global ) ) {
if ( !sources.length && !uses.module && !uses.exports && !uses.require && ( ignoreGlobal || !uses.global ) ) {
if ( Object.keys( namedExports ).length ) {
throw new Error( `Custom named exports were specified for ${id} but it does not appear to be a CommonJS module` );
}
Expand Down

0 comments on commit 289fa23

Please sign in to comment.