-
Notifications
You must be signed in to change notification settings - Fork 61
build: set es2020 in bazel ts_library usages #2084
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
1b46dab to
c662375
Compare
Currently the default `target` for the code compiled with `ts_library` is set through the `ts_library` exposed in `defaults.bzl`, however the code under the `bazel` directory isn't allowed to use `defaults.bzl` which meant that it was defaulting to es2015. These changes add a `defaults.bzl` specific to the `bazel` directory which allows us to maintain the defaults in a single place. This came up due to a breakage in angular/angular#56096.
c662375 to
8757243
Compare
| @@ -0,0 +1,21 @@ | |||
| load("@npm//@bazel/concatjs:index.bzl", _ts_library = "ts_library") | |||
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.
Technically we could've fixed the issue by adding prodmode_target and devmode_target to all the places using ts_library, but I figured that this is a bit more maintainable.
Fixes that the `defaults.bzl` from angular#2084 wasn't included in the npm package.
Fixes that the `defaults.bzl` from #2084 wasn't included in the npm package.
|
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. |
Currently the default
targetfor the code compiled withts_libraryis set through thets_libraryexposed indefaults.bzl, however the code under thebazeldirectory isn't allowed to usedefaults.bzlwhich meant that it was defaulting to es2015.These changes add a
defaults.bzlspecific to thebazeldirectory which allows us to maintain the defaults in a single place.This came up due to a breakage in angular/angular#56096.