angular-cn/tools
Paul Gschwendtner 1601ee6f6a refactor(dev-infra): ng_rollup_bundle rule should leverage `@bazel/rollup` (#37623)
Refactors the `ng_rollup_bundle` rule to a macro that relies on
the `@bazel/rollup` package. This means that the rule no longer
deals with custom ESM5 flavour output, but rather only builds
prodmode ES2015 output. This matches the common build output
in Angular projects, and optimizations done in CLI where
ES2015 is the default optimization input.

The motiviation for this change is:

* Not duplicating rollup Bazel rules. Instead leveraging the official
rollup rule.
* Not dealing with a third TS output flavor in Bazel.The ESM5 flavour has the
potential of slowing down local development (as it requires compilation replaying)
* Updating the rule to be aligned with current CLI optimizations.

This also _fixes_ a bug that surfaced in the old rollup bundle rule.
Code that is unused, is not removed properly. The new rule fixes this by
setting the `toplevel` flag. This instructs terser to remove unused
definitions at top-level. This matches the optimization applied in CLI
projects. Notably the CLI doesn't need this flag, as code is always
wrapped by Webpack. Hence, the unused code eliding runs by default.

PR Close #37623
2020-06-22 10:55:28 -07:00
..
build build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
circular_dependency_test build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
contributing-stats build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
gulp-tasks style(dev-infra): enforce format on newly included files (#36940) 2020-06-12 15:06:41 -07:00
npm build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
npm_integration_test build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
rxjs build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
saucelabs build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
size-tracking build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
source-map-test build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
symbol-extractor build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
testing build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
ts-api-guardian build: update to typescript 3.9.5 (#37456) 2020-06-11 12:05:33 -07:00
tslint build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
utils build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
yarn build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
BUILD.bazel build: remove rollup packaging from dev-infra (#35647) 2020-03-17 12:27:07 -07:00
check-environment.js build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
defaults.bzl refactor(dev-infra): small changes and fixes (#36800) 2020-06-03 13:12:30 -07:00
inline-package-json-deps.js build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
jasmine-seed-generator.js build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
jsconfig.json chore(vscode): add jsconfig.json and remove .settings dir 2015-10-29 13:53:21 +00:00
ng_benchmark.bzl refactor(dev-infra): ng_rollup_bundle rule should leverage `@bazel/rollup` (#37623) 2020-06-22 10:55:28 -07:00
postinstall-patches.js build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
rebase-pr.js build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
tsconfig-test.json build(bazel): use fine-grained npm deps (#26111) (#26488) 2018-10-19 20:59:29 -07:00
tsconfig.json build: ts-api-guardian tsconfig warning with bazel (#27583) 2018-12-13 11:01:48 -08:00
types.d.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
utils.bzl build: create macro for transpiling javascript file to es5 (#36802) 2020-05-04 12:43:50 -07:00
utils.inc feat(bundle): add script to push bundles to code.angularjs.org 2015-04-14 14:50:53 -07:00