-
Notifications
You must be signed in to change notification settings - Fork 25.7k
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
fix closure imports by appending /index where needed #13471
Conversation
Hmm, this is currently blocked. The issue is that tsickle now rewrites
here, the deep import from |
87d994f
to
f9d1fe9
Compare
This is now unblocked, @IgorMinar you should probably take a look since this adds the experimental ES6 build (guarded by an env variable) |
ce4372e
to
9a2ce44
Compare
We should update the Angular Package Format doc before merging these changes to truly understand the impact. I read through the PR but I'll need to checkout the branch and actually build it to see what are all the changes. Let's not merge this until the design doc is updated. I'll work with Alex on this once he's back from vacation. I believe that this is PR is not super urgent and can wait a few days. If not please let me know. |
This PR shouldn't change the existing build, because the features are guarded by a flag. |
8f0c357
to
84e7148
Compare
PTAL |
please fix commit messages:
|
|
||
let {output, externs, diagnostics} = | ||
tsickle.annotate(this.oldProgram, sourceFile, {untyped: true}); | ||
const es2015Target = this.options.target == ts.ScriptTarget.ES2015; // This covers ES6 too |
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.
covers? it's equivalent. no?
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.
meaning this conditional matches if you pass --target=ES6
on the command line.
ES6 and ES2015 get the same integer value
@@ -131,6 +132,13 @@ do | |||
|
|||
echo "====== COMPILING: ${TSC} -p ${SRCDIR}/tsconfig-build.json =====" | |||
$TSC -p ${SRCDIR}/tsconfig-build.json | |||
# ES2015 distro is not ready yet; don't slow down all builds for it | |||
# TODO(alexeagle,igorminar): figure out ES2015 story and enable |
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.
discussed in person
Done, PTAL |
Also publish ES2015 snapshots from Travis builds.
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. |
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x")
What is the current behavior? (You can also link to an open issue here)
What is the new behavior?
Does this PR introduce a breaking change? (check one with "x")
If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information: