Skip to content

Commit

Permalink
fix(project): only transpile aurelia_project in project root
Browse files Browse the repository at this point in the history
closes #605
  • Loading branch information
JeroenVinke committed Apr 16, 2017
1 parent 55e487d commit 6fd3f7f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ exports.Project = class {
installTranspiler() {
switch (this.model.transpiler.id) {
case 'babel':
installBabel();
installBabel.call(this);
break;
case 'typescript':
installTypeScript();
Expand Down Expand Up @@ -201,7 +201,10 @@ function installBabel() {
plugins: [
'transform-es2015-modules-commonjs'
],
only: /aurelia_project/
ignore: (filename) => {
let relativeFromProjectRoot = path.relative(this.directory, filename);
return !/^aurelia_project/.test(relativeFromProjectRoot);
}
});
}

Expand Down

0 comments on commit 6fd3f7f

Please sign in to comment.