Skip to content

feat(@ngtools/webpack): add AngularCompilerPlugin#7512

Closed
filipesilva wants to merge 2 commits intoangular:masterfrom
filipesilva:aot-watch
Closed

feat(@ngtools/webpack): add AngularCompilerPlugin#7512
filipesilva wants to merge 2 commits intoangular:masterfrom
filipesilva:aot-watch

Conversation

@filipesilva
Copy link
Copy Markdown
Contributor

No description provided.

package.json Outdated
"stylus": "^0.54.5",
"stylus-loader": "^3.0.1",
"typescript": "~2.4.2",
"typescript": "^2.3.2",
Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor Author

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.

@filipesilva filipesilva force-pushed the aot-watch branch 19 times, most recently from 1afe042 to 31bcf9b Compare August 30, 2017 20:06
}

enum Platform {
browser,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please capitalize enum names.

@hansl
Copy link
Copy Markdown
Contributor

hansl commented Sep 12, 2017

Only other comment would be to have this on by default when the user uses AOT and Angular 5.

@hansl
Copy link
Copy Markdown
Contributor

hansl commented Sep 12, 2017

I would see 3 paths here:

  1. ng2/4, use the AotPlugin as before (backward compatible)
  2. ng5 + JIT, use the AotPlugin FOR NOW, have a separate PR for adding emit+transform support
  3. ng5 + AOT, use the AngularCompilerPlugin.

1 and 3 should be part of this PR, while 2 should be a separate PR.

@filipesilva filipesilva force-pushed the aot-watch branch 3 times, most recently from 898d5d8 to 3270909 Compare September 13, 2017 10:14
default: buildConfigDefaults['namedChunks']
},
{
name: 'experimental-angular-compiler',
Copy link
Copy Markdown
Contributor

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.

Copy link
Copy Markdown
Contributor

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,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capitalize enum values.


cache:
- node_modules
- node_modules -> package-lock.json
Copy link
Copy Markdown
Contributor

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?

Copy link
Copy Markdown
Contributor Author

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';
Copy link
Copy Markdown
Contributor

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.

@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants