Skip to content

Commit

Permalink
fix(cli-bundler): warn user about missed source matcher
Browse files Browse the repository at this point in the history
closes #1182, replaces #1160
  • Loading branch information
3cp committed May 14, 2020
1 parent 8e285a1 commit bf13526
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/build/bundled-source.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ exports.BundledSource = class {
this.file = file;
this._contents = null;
this.requiresTransform = true;
this.includedIn.requiresBuild = true;
if (this.includedIn) {
this.includedIn.requiresBuild = true;
} else {
logger.warn(this.path + ' is not captured by any bundle file. You might need to adjust the bundles source matcher in aurelia.json.');
}
}

transform() {
Expand Down
1 change: 1 addition & 0 deletions lib/build/bundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ function subsume(bundles, item) {
return;
}
}
logger.warn(item.path + ' is not captured by any bundle file. You might need to adjust the bundles source matcher in aurelia.json.');
}

function normalizeKey(p) {
Expand Down

0 comments on commit bf13526

Please sign in to comment.