Skip to content

Commit

Permalink
Merge pull request #27 from tolemac/master
Browse files Browse the repository at this point in the history
Allow not existing files for external modules, closes #22, #25
  • Loading branch information
tolemac committed Jan 12, 2016
2 parents da2d684 + ca2d41c commit 1990fca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,16 +197,16 @@ export function bundle(options: Options) {

parse.externalImports.forEach(name => {
let p = exportMap[name];
if (!externals) {
trace(' - exclude external %s', name);
pushUnique(externalDependencies, !p ? name : p.file);
return;
}
if (isExclude(path.relative(baseDir, p.file), true)) {
trace(' - exclude external filter %s', name);
pushUnique(excludedTypings, p.file);
return;
}
if (!externals) {
trace(' - exclude external%s', name);
pushUnique(externalDependencies, p.file);
return;
}
trace(' - include external %s', name);
assert(p, name);
queue.push(p);
Expand Down

0 comments on commit 1990fca

Please sign in to comment.