Skip to content
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

build: update zone.js to use the new rollup_bundle #33329

Closed

Conversation

gregmagolan
Copy link
Contributor

@gregmagolan gregmagolan commented Oct 22, 2019

This switches the zone.js build to use the new nodejs rollup_bundle and terser_minifed rules and downlevel with the auto-generated tsc rule.

gregmagolan added a commit to gregmagolan/angular that referenced this pull request Oct 22, 2019
The legacy nodejs rules rollup_bundle is now deprecated and will be removed in the nodejs rules 1.0 release due in mid-November. This PR brings in the rules_nodejs internal API deps that ng_rollup_bundle, ng_package and ls_rollup_bundle depend on into this repo to break the dependency. In the future these rules should switch to use the new rollup_bundle via a macro as done in angular#33329 but this is not possible right now due to the complication of having esm5 re-rooted ts_library dependencies.
gregmagolan added a commit to gregmagolan/angular that referenced this pull request Oct 22, 2019
The legacy nodejs rules rollup_bundle is now deprecated and will be removed in the nodejs rules 1.0 release due in mid-November. This PR brings in the rules_nodejs internal API deps that ng_rollup_bundle, ng_package and ls_rollup_bundle depend on into this repo to break the dependency. In the future these rules should switch to use the new rollup_bundle via a macro as done in angular#33329 but this is not possible right now due to the complication of having esm5 re-rooted ts_library dependencies.
gregmagolan added a commit to gregmagolan/angular that referenced this pull request Oct 23, 2019
The legacy nodejs rules rollup_bundle is now deprecated and will be removed in the nodejs rules 1.0 release due in mid-November. This PR brings in the rules_nodejs internal API deps that ng_rollup_bundle, ng_package and ls_rollup_bundle depend on into this repo to break the dependency. In the future these rules should switch to use the new rollup_bundle via a macro as done in angular#33329 but this is not possible right now due to the complication of having esm5 re-rooted ts_library dependencies.
gregmagolan added a commit to gregmagolan/angular that referenced this pull request Oct 25, 2019
The legacy nodejs rules rollup_bundle is now deprecated and will be removed in the nodejs rules 1.0 release due in mid-November. This PR brings in the rules_nodejs internal API deps that ng_rollup_bundle, ng_package and ls_rollup_bundle depend on into this repo to break the dependency. In the future these rules should switch to use the new rollup_bundle via a macro as done in angular#33329 but this is not possible right now due to the complication of having esm5 re-rooted ts_library dependencies.
gregmagolan added a commit to gregmagolan/angular that referenced this pull request Oct 25, 2019
The legacy nodejs rules rollup_bundle is now deprecated and will be removed in the nodejs rules 1.0 release due in mid-November. This PR brings in the rules_nodejs internal API deps that ng_rollup_bundle, ng_package and ls_rollup_bundle depend on into this repo to break the dependency. In the future these rules should switch to use the new rollup_bundle via a macro as done in angular#33329 but this is not possible right now due to the complication of having esm5 re-rooted ts_library dependencies.
gregmagolan added a commit to gregmagolan/angular that referenced this pull request Oct 25, 2019
The legacy nodejs rules rollup_bundle is now deprecated and will be removed in the nodejs rules 1.0 release due in mid-November. This PR brings in the rules_nodejs internal API deps that ng_rollup_bundle, ng_package and ls_rollup_bundle depend on into this repo to break the dependency. In the future these rules should switch to use the new rollup_bundle via a macro as done in angular#33329 but this is not possible right now due to the complication of having esm5 re-rooted ts_library dependencies.
gregmagolan added a commit to gregmagolan/angular that referenced this pull request Oct 25, 2019
The legacy nodejs rules rollup_bundle is now deprecated and will be removed in the nodejs rules 1.0 release due in mid-November. This PR brings in the rules_nodejs internal API deps that ng_rollup_bundle, ng_package and ls_rollup_bundle depend on into this repo to break the dependency. In the future these rules should switch to use the new rollup_bundle via a macro as done in angular#33329 but this is not possible right now due to the complication of having esm5 re-rooted ts_library dependencies.
gregmagolan added a commit to gregmagolan/angular that referenced this pull request Oct 25, 2019
The legacy nodejs rules rollup_bundle is now deprecated and will be removed in the nodejs rules 1.0 release due in mid-November. This PR brings in the rules_nodejs internal API deps that ng_rollup_bundle, ng_package and ls_rollup_bundle depend on into this repo to break the dependency. In the future these rules should switch to use the new rollup_bundle via a macro as done in angular#33329 but this is not possible right now due to the complication of having esm5 re-rooted ts_library dependencies.
gregmagolan added a commit to gregmagolan/angular that referenced this pull request Oct 25, 2019
The legacy nodejs rules rollup_bundle is now deprecated and will be removed in the nodejs rules 1.0 release due in mid-November. This PR brings in the rules_nodejs internal API deps that ng_rollup_bundle, ng_package and ls_rollup_bundle depend on into this repo to break the dependency. In the future these rules should switch to use the new rollup_bundle via a macro as done in angular#33329 but this is not possible right now due to the complication of having esm5 re-rooted ts_library dependencies.
gregmagolan added a commit to gregmagolan/angular that referenced this pull request Oct 25, 2019
The legacy nodejs rules rollup_bundle is now deprecated and will be removed in the nodejs rules 1.0 release due in mid-November. This PR brings in the rules_nodejs internal API deps that ng_rollup_bundle, ng_package and ls_rollup_bundle depend on into this repo to break the dependency. In the future these rules should switch to use the new rollup_bundle via a macro as done in angular#33329 but this is not possible right now due to the complication of having esm5 re-rooted ts_library dependencies.
gregmagolan added a commit to gregmagolan/angular that referenced this pull request Oct 25, 2019
The legacy nodejs rules rollup_bundle is now deprecated and will be removed in the nodejs rules 1.0 release due in mid-November. This PR brings in the rules_nodejs internal API deps that ng_rollup_bundle, ng_package and ls_rollup_bundle depend on into this repo to break the dependency. In the future these rules should switch to use the new rollup_bundle via a macro as done in angular#33329 but this is not possible right now due to the complication of having esm5 re-rooted ts_library dependencies.
gregmagolan added a commit to gregmagolan/angular that referenced this pull request Oct 25, 2019
The legacy nodejs rules rollup_bundle is now deprecated and will be removed in the nodejs rules 1.0 release due in mid-November. This PR brings in the rules_nodejs internal API deps that ng_rollup_bundle, ng_package and ls_rollup_bundle depend on into this repo to break the dependency. In the future these rules should switch to use the new rollup_bundle via a macro as done in angular#33329 but this is not possible right now due to the complication of having esm5 re-rooted ts_library dependencies.
gregmagolan added a commit to gregmagolan/angular that referenced this pull request Oct 25, 2019
The legacy nodejs rules rollup_bundle is now deprecated and will be removed in the nodejs rules 1.0 release due in mid-November. This PR brings in the rules_nodejs internal API deps that ng_rollup_bundle, ng_package and ls_rollup_bundle depend on into this repo to break the dependency. In the future these rules should switch to use the new rollup_bundle via a macro as done in angular#33329 but this is not possible right now due to the complication of having esm5 re-rooted ts_library dependencies.
gregmagolan added a commit to gregmagolan/angular that referenced this pull request Oct 25, 2019
The legacy nodejs rules rollup_bundle is now deprecated and will be removed in the nodejs rules 1.0 release due in mid-November. This PR brings in the rules_nodejs internal API deps that ng_rollup_bundle, ng_package and ls_rollup_bundle depend on into this repo to break the dependency. In the future these rules should switch to use the new rollup_bundle via a macro as done in angular#33329 but this is not possible right now due to the complication of having esm5 re-rooted ts_library dependencies.
gregmagolan added a commit to gregmagolan/angular that referenced this pull request Oct 25, 2019
The legacy nodejs rules rollup_bundle is now deprecated and will be removed in the nodejs rules 1.0 release due in mid-November. This PR brings in the rules_nodejs internal API deps that ng_rollup_bundle, ng_package and ls_rollup_bundle depend on into this repo to break the dependency. In the future these rules should switch to use the new rollup_bundle via a macro as done in angular#33329 but this is not possible right now due to the complication of having esm5 re-rooted ts_library dependencies.
gregmagolan added a commit to gregmagolan/angular that referenced this pull request Oct 25, 2019
The legacy nodejs rules rollup_bundle is now deprecated and will be removed in the nodejs rules 1.0 release due in mid-November. This PR brings in the rules_nodejs internal API deps that ng_rollup_bundle, ng_package and ls_rollup_bundle depend on into this repo to break the dependency. In the future these rules should switch to use the new rollup_bundle via a macro as done in angular#33329 but this is not possible right now due to the complication of having esm5 re-rooted ts_library dependencies.
gregmagolan added a commit to gregmagolan/angular that referenced this pull request Oct 25, 2019
The legacy nodejs rules rollup_bundle is now deprecated and will be removed in the nodejs rules 1.0 release due in mid-November. This PR brings in the rules_nodejs internal API deps that ng_rollup_bundle, ng_package and ls_rollup_bundle depend on into this repo to break the dependency. In the future these rules should switch to use the new rollup_bundle via a macro as done in angular#33329 but this is not possible right now due to the complication of having esm5 re-rooted ts_library dependencies.
gregmagolan added a commit to gregmagolan/angular that referenced this pull request Oct 25, 2019
The legacy nodejs rules rollup_bundle is now deprecated and will be removed in the nodejs rules 1.0 release due in mid-November. This PR brings in the rules_nodejs internal API deps that ng_rollup_bundle, ng_package and ls_rollup_bundle depend on into this repo to break the dependency. In the future these rules should switch to use the new rollup_bundle via a macro as done in angular#33329 but this is not possible right now due to the complication of having esm5 re-rooted ts_library dependencies.
gregmagolan added a commit to gregmagolan/angular that referenced this pull request Oct 25, 2019
The legacy nodejs rules rollup_bundle is now deprecated and will be removed in the nodejs rules 1.0 release due in mid-November. This PR brings in the rules_nodejs internal API deps that ng_rollup_bundle, ng_package and ls_rollup_bundle depend on into this repo to break the dependency. In the future these rules should switch to use the new rollup_bundle via a macro as done in angular#33329 but this is not possible right now due to the complication of having esm5 re-rooted ts_library dependencies.
gregmagolan added a commit to gregmagolan/angular that referenced this pull request Oct 25, 2019
The legacy nodejs rules rollup_bundle is now deprecated and will be removed in the nodejs rules 1.0 release due in mid-November. This PR brings in the rules_nodejs internal API deps that ng_rollup_bundle, ng_package and ls_rollup_bundle depend on into this repo to break the dependency. In the future these rules should switch to use the new rollup_bundle via a macro as done in angular#33329 but this is not possible right now due to the complication of having esm5 re-rooted ts_library dependencies.
gregmagolan added a commit to gregmagolan/angular that referenced this pull request Oct 26, 2019
The legacy nodejs rules rollup_bundle is now deprecated and will be removed in the nodejs rules 1.0 release due in mid-November. This PR brings in the rules_nodejs internal API deps that ng_rollup_bundle, ng_package and ls_rollup_bundle depend on into this repo to break the dependency. In the future these rules should switch to use the new rollup_bundle via a macro as done in angular#33329 but this is not possible right now due to the complication of having esm5 re-rooted ts_library dependencies.
gregmagolan added a commit to gregmagolan/angular that referenced this pull request Oct 26, 2019
The legacy nodejs rules rollup_bundle is now deprecated and will be removed in the nodejs rules 1.0 release due in mid-November. This PR brings in the rules_nodejs internal API deps that ng_rollup_bundle, ng_package and ls_rollup_bundle depend on into this repo to break the dependency. In the future these rules should switch to use the new rollup_bundle via a macro as done in angular#33329 but this is not possible right now due to the complication of having esm5 re-rooted ts_library dependencies.
gregmagolan added a commit to gregmagolan/angular that referenced this pull request Oct 27, 2019
…ScriptModuleInfo

The es6 sources now have .mjs extensions so they no longer need to be re-rooted to `{package}.es6`
[0933c29d29] build: remove deps on legacy nodejs rules rollup_bundle internals

The legacy nodejs rules rollup_bundle is now deprecated and will be removed in the nodejs rules 1.0 release due in mid-November. This PR brings in the rules_nodejs internal API deps that ng_rollup_bundle, ng_package and ls_rollup_bundle depend on into this repo to break the dependency. In the future these rules should switch to use the new rollup_bundle via a macro as done in angular#33329 but this is not possible right now due to the complication of having esm5 re-rooted ts_library dependencies.
gregmagolan added a commit to gregmagolan/angular that referenced this pull request Oct 27, 2019
The legacy nodejs rules rollup_bundle is now deprecated and will be removed in the nodejs rules 1.0 release due in mid-November. This PR brings in the rules_nodejs internal API deps that ng_rollup_bundle, ng_package and ls_rollup_bundle depend on into this repo to break the dependency. In the future these rules should switch to use the new rollup_bundle via a macro as done in angular#33329 but this is not possible right now due to the complication of having esm5 re-rooted ts_library dependencies.

The es6 sources now have .mjs extensions so they no longer need to be re-rooted to `{package}.es6`. This eliminates the need for the collect_es6_sources() function.
gregmagolan added a commit to gregmagolan/angular that referenced this pull request Oct 27, 2019
The legacy nodejs rules rollup_bundle is now deprecated and will be removed in the nodejs rules 1.0 release due in mid-November. This PR brings in the rules_nodejs internal API deps that ng_rollup_bundle, ng_package and ls_rollup_bundle depend on into this repo to break the dependency. In the future these rules should switch to use the new rollup_bundle via a macro as done in angular#33329 but this is not possible right now due to the complication of having esm5 re-rooted ts_library dependencies.

The es6 sources now have .mjs extensions so they no longer need to be re-rooted to `{package}.es6`. This eliminates the need for the collect_es6_sources() function.
@gregmagolan gregmagolan changed the title build: [WIP] update zone.js to use the new rollup_bundle build: update zone.js to use the new rollup_bundle Oct 27, 2019
gregmagolan added a commit to gregmagolan/angular that referenced this pull request Nov 13, 2019
This release includes nodejs cross-platform RBE fix in bazelbuild/rules_nodejs#1320 and adds `args` to terser_minified in bazelbuild/rules_nodejs#1317. These changes are needed to land a few outstanding PRs.

* build: fixes for cross-platform RBE angular#33708
* build: update zone.js to use the new rollup_bundle angular#33329
@gregmagolan
Copy link
Contributor Author

0.40 release is out which includes the changes in the patch here. After the #33802 update lands this PR can be updated and land without patches.

gregmagolan added a commit to gregmagolan/angular that referenced this pull request Nov 13, 2019
This release includes nodejs cross-platform RBE fix in bazelbuild/rules_nodejs#1320 and adds `args` to terser_minified in bazelbuild/rules_nodejs#1317. These changes are needed to land a few outstanding PRs.

* build: fixes for cross-platform RBE angular#33708
* build: update zone.js to use the new rollup_bundle angular#33329
@gregmagolan gregmagolan mentioned this pull request Nov 13, 2019
14 tasks
gregmagolan added a commit to gregmagolan/angular that referenced this pull request Nov 13, 2019
This release includes nodejs cross-platform RBE fix in bazelbuild/rules_nodejs#1320 and adds `args` to terser_minified in bazelbuild/rules_nodejs#1317. These changes are needed to land a few outstanding PRs.

* build: fixes for cross-platform RBE angular#33708
* build: update zone.js to use the new rollup_bundle angular#33329

fix: fix
gregmagolan added a commit to gregmagolan/angular that referenced this pull request Nov 13, 2019
This release includes nodejs cross-platform RBE fix in bazelbuild/rules_nodejs#1320 and adds `args` to terser_minified in bazelbuild/rules_nodejs#1317. These changes are needed to land a few outstanding PRs.

* build: fixes for cross-platform RBE angular#33708
* build: update zone.js to use the new rollup_bundle angular#33329

fix: fix
kara pushed a commit that referenced this pull request Nov 13, 2019
This release includes nodejs cross-platform RBE fix in bazelbuild/rules_nodejs#1320 and adds `args` to terser_minified in bazelbuild/rules_nodejs#1317. These changes are needed to land a few outstanding PRs.

* build: fixes for cross-platform RBE #33708
* build: update zone.js to use the new rollup_bundle #33329

fix: fix

PR Close #33802
kara pushed a commit that referenced this pull request Nov 13, 2019
This release includes nodejs cross-platform RBE fix in bazelbuild/rules_nodejs#1320 and adds `args` to terser_minified in bazelbuild/rules_nodejs#1317. These changes are needed to land a few outstanding PRs.

* build: fixes for cross-platform RBE #33708
* build: update zone.js to use the new rollup_bundle #33329

fix: fix

PR Close #33802
@gregmagolan gregmagolan force-pushed the zonejs_new_rollup_bundle branch 3 times, most recently from 967853e to 479823f Compare November 14, 2019 00:06
@gregmagolan
Copy link
Contributor Author

Patches to @bazel/terser removed now that it has an args to be able to pass --comments to it. This is unblocked and ready for merging.

tools/BUILD.bazel Outdated Show resolved Hide resolved
Copy link
Member

@josephperrott josephperrott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, global approval

@josephperrott josephperrott added area: build & ci Related the build and CI infrastructure of the project merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note labels Nov 14, 2019
@ngbot ngbot bot added the action: merge The PR is ready for merge by the caretaker label Nov 14, 2019
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker area: bazel Issues related to the published `@angular/bazel` build rules area: build & ci Related the build and CI infrastructure of the project cla: yes merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants