Skip to content

Commit

Permalink
Merge pull request #1183 from aurelia/warn-missing-file
Browse files Browse the repository at this point in the history
fix(cli-bundler): warn user about missed source matcher
  • Loading branch information
3cp committed May 14, 2020
2 parents 8e285a1 + bf13526 commit 814e8b4
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 814e8b4

Please sign in to comment.