Skip to content

Commit

Permalink
fix(@ngtools/webpack): allow Angular 5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
filipesilva authored and Brocco committed Jul 20, 2017
1 parent d5d0b07 commit 7d8f54a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/@ngtools/webpack/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ if (compilerCliPath.startsWith(path.dirname(__dirname))) {
+ 'Please clean your node_modules and reinstall.');
}

// Throw if we're neither 2.3.1 or more, nor 4.x.y.
if (!( version.major == '4'
// Throw if we're neither 2.3.1 or more, nor 4.x.y, nor 5.x.y.
if (!( version.major == '5'
|| version.major == '4'
|| (version.major == '2'
&& ( version.minor == '4'
|| version.minor == '3' && version.patch == '1')))) {
Expand Down

0 comments on commit 7d8f54a

Please sign in to comment.