-
Notifications
You must be signed in to change notification settings - Fork 152
feat: use es2018 lib in tsconfig.json files #869
feat: use es2018 lib in tsconfig.json files #869
Conversation
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
|
|
I signed it! |
|
CLAs look good, thanks! |
|
Please avoid changing files within the Also,
|
|
@clydin I see. Thanks for your help. I’ll update the PR accordingly. |
Make the es2018 typescript lib available for the repository.
Update the lib property in tsconfig.json files for Angular libraries and workspaces to include es2018.
…2018 Update the lib property in tsconfig.json files to include es2018.
69edba9 to
dcb2f8b
Compare
|
@clydin The tests looks better now. 👍 However, bazel-build seems to have a problem, probably because the Bazel TypeScript rules only support TS 2.6.x: https://github.com/bazelbuild/rules_typescript/blob/master/package.json#L27 What do you suggest? Should I file a new PR for |
|
I’ve created an additional PR (#870) that only bumps the lib to |
|
@alexeagle do you know why the bazel rules only support TS 2.6.x? |
|
The devkit is built against 2.7. The problem appears to be that the lib type definitions are being sourced from the following (and 2.6 does not contain ES2018 definitions): instead of the typescript version used to compile: |
|
The error may stem from the following line which attempts to optimize the build time by re-using the library definitions from an existing project. https://github.com/angular/devkit/blob/master/packages/angular_devkit/build_optimizer/BUILD#L32 |
|
Sorry @christianliebel , this got lost when we moved the code back over to the angular/angular-cli repo. Do you have time to re-base this commit on master over there? |
Update the
libproperty in tsconfig.json files of both schematics and the DevKit repo toes2018.The ECMAScript 2018 feature set was finalized in January, so it seems reasonable to upgrade the libs as well. This is specifically interesting for the new Angular libs that are stuck at ECMAScript 2015 (!).