Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

build: embed tslib in umd bundles #1760

Merged
merged 1 commit into from
Jul 8, 2020
Merged

build: embed tslib in umd bundles #1760

merged 1 commit into from
Jul 8, 2020

Conversation

alan-agius4
Copy link
Collaborator

When tslib is listed as part of the globals, it will not be embedded in the UMD bundles.
https://github.com/angular/angular/blob/fd65958b887f6ea8dd5235e6de1d533e4c578602/packages/bazel/src/ng_package/ng_package.bzl#L226-L228

Users using UMD bundles, shouldn't be needing to add the tslib script, also this is important because tslib is a direct depedency of the package and not a peer depedency.

This is also to align with the Angular FW packages.

@alan-agius4 alan-agius4 added the target: minor target: minor This PR is targeted for the next minor release label Jul 8, 2020
When tslib is listed as part of the globals, it will not be embedded in the UMD bundles.
https://github.com/angular/angular/blob/fd65958b887f6ea8dd5235e6de1d533e4c578602/packages/bazel/src/ng_package/ng_package.bzl#L226-L228

Users using UMD bundles, shouldn't be needing to add the tslib script, also this is important because tslib is a direct depedency of the package and not a peer depedency.

This is also to align with the Angular FW packages.
@CaerusKaru CaerusKaru merged commit eadf4d4 into angular:master Jul 8, 2020
@alan-agius4 alan-agius4 deleted the tslib-embeed branch July 8, 2020 16:12
@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 Aug 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
target: minor target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants