Skip to content

Commit 65b97c0

Browse files
committed
fix(@ngtools/webpack): Allow for usage of Angular v6.*.*
1 parent b6f1be7 commit 65b97c0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: packages/@ngtools/webpack/src/ngtools_api.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,9 @@ export function CompilerCliIsSupported() {
144144
+ 'Please clean your node_modules and reinstall.');
145145
}
146146

147-
// Throw if we're neither 2.3.1 or more, nor 4.x.y, nor 5.x.y.
148-
if (!(version.major == '5'
147+
// Throw if we're neither 2.3.1 or more, nor 4.x.y, nor 5.x.y, nor 6.x.y.
148+
if (!(version.major == '6'
149+
|| version.major == '5'
149150
|| version.major == '4'
150151
|| (version.major == '2'
151152
&& (version.minor == '4'

0 commit comments

Comments
 (0)