-
Notifications
You must be signed in to change notification settings - Fork 11.9k
fix(@ngtools/webpack): analyze the typescript file for additional dep… #7998
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
|
||
export default async function() { | ||
if (process.platform.startsWith('win')) { | ||
return Promise.resolve(); |
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.
Should be able to just return;
here. An async function will return a resolved promise with the returned value.
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.
You’re right. Thanks
await execAndWaitForOutputToMatch('ng', ['serve'], successRe); | ||
|
||
await Promise.all([ | ||
waitForAnyProcessOutputToMatch(successRe, 20000), |
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.
The rest of the PR LGTM but this test fails with the new plugin (Angular 5+).
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.
As it should, I need to fix that code path. Going to do that right now.
1ce0ee1
to
b0a5641
Compare
…endencies By default, Webpack only add dependencies it can see. Types or imports that are not kept in transpilations are removed, and webpack dont see them. By reading the AST directly we manually add the dependencies to webpack. Fixes angular#7995.
I confirmed (running nightly tests locally) that this work with the latest angular compiler. |
See angular#7995 (comment) for details. Fix regression introduced in angular#7998
See #7995 (comment) for details. Fix regression introduced in #7998
See #7995 (comment) for details. Fix regression introduced in #7998
See #7995 (comment) for details. Fix regression introduced in #7998
See angular#7995 (comment) for details. Fix regression introduced in angular#7998
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. |
…endencies
By default, Webpack only add dependencies it can see. Types or imports that are not
kept in transpilations are removed, and webpack dont see them. By reading the AST
directly we manually add the dependencies to webpack.
Fixes #7995.