Skip to content

Commit

Permalink
Merge pull request #817 from rcashie/resolve-exclude-path
Browse files Browse the repository at this point in the history
Use the "resolved" exclude path
  • Loading branch information
usergenic authored Jan 10, 2019
2 parents 054c375 + 9d228e5 commit 545bed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bundler/src/bundler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export class Bundler {
continue;
}
bundle.files.delete(resolvedExclude);
const excludeAsFolder = exclude.endsWith('/') ? exclude : exclude + '/';
const excludeAsFolder = resolvedExclude.endsWith('/') ? resolvedExclude : resolvedExclude + '/';
for (const file of bundle.files) {
if (file.startsWith(excludeAsFolder)) {
bundle.files.delete(file);
Expand Down

0 comments on commit 545bed1

Please sign in to comment.