-
Notifications
You must be signed in to change notification settings - Fork 12k
feat(@ngtools/webpack): add AngularCompilerPlugin #7512
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
5f67849
to
2adf521
Compare
package.json
Outdated
@@ -90,7 +90,7 @@ | |||
"style-loader": "^0.13.1", | |||
"stylus": "^0.54.5", | |||
"stylus-loader": "^3.0.1", | |||
"typescript": "~2.4.2", | |||
"typescript": "^2.3.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't want to unlock typescript. There's no guarantee our stuff will work with TS 2.6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was needed to test a linked AIO since it isn't ts 2.4 ready. Will remove before PR is done.
1afe042
to
31bcf9b
Compare
31bcf9b
to
cff6234
Compare
bf9f231
to
2475383
Compare
2475383
to
a2fc994
Compare
} | ||
|
||
enum Platform { | ||
browser, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please capitalize enum names.
Only other comment would be to have this on by default when the user uses AOT and Angular 5. |
I would see 3 paths here:
1 and 3 should be part of this PR, while 2 should be a separate PR. |
898d5d8
to
3270909
Compare
3270909
to
ad9b46b
Compare
@@ -176,6 +177,13 @@ export const baseBuildCommandOptions: any = [ | |||
aliases: ['nc'], | |||
description: 'Use file name for lazy loaded chunks.', | |||
default: buildConfigDefaults['namedChunks'] | |||
}, | |||
{ | |||
name: 'experimental-angular-compiler', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought we were getting rid of this by using a version check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nevermind, that will happen once we have JIT support.
} | ||
|
||
enum PLATFORM { | ||
browser, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Capitalize enum values.
@@ -18,4 +18,4 @@ test_script: | |||
build: off | |||
|
|||
cache: | |||
- node_modules | |||
- node_modules -> package-lock.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does the package-lock.json means here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's how that cache gets invalidated, I was having trouble with this PR in appveyour and had to invalidate it properly.
@@ -0,0 +1,114 @@ | |||
import * as ts from 'typescript'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unittests for this file? It's quite sensitive code that I'd like to avoid regressions.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
No description provided.