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(zone.js): zone.js should output esm format for fesm2015 bundles #39203

Closed
wants to merge 1 commit into from

Conversation

JiaLiPassion
Copy link
Contributor

@JiaLiPassion JiaLiPassion commented Oct 9, 2020

Zone.js support Angular package format since 0.11, but the fesm2015 bundles
are not esm format, it still use umd bundle which is not correct, in this PR,
a new esm bundle output is added in rollup_bundle rule under tools, so
zone.js can use the new rule to generate esm bundles.

Before this PR, fesm2015/zone.js is a umd bundle.


(function (factory) {
    typeof define === 'function' && define.amd ? define(factory) :
    factory();
}((function () { 'use strict';

    /**
     * @license
     * Copyright Google LLC All Rights Reserved.
     *
     * Use of this source code is governed by an MIT-style license that can be
     * found in the LICENSE file at https://angular.io/license
     */
    const Zone$1 = (function (global) {
        const performance = global['performance'];
        ...

now it is a esm bundle.

const Zone$1 = (function (global) {
    const performance = global['performance'];
    ...

@google-cla google-cla bot added the cla: yes label Oct 9, 2020
@JiaLiPassion JiaLiPassion added the target: major This PR is targeted for the next major release label Oct 9, 2020
Copy link
Contributor

@IgorMinar IgorMinar left a comment

Choose a reason for hiding this comment

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

The rest looks good to me. Can you please clarify why we have the minified debug output there? is it actually necessary for something?

tools/defaults.bzl Outdated Show resolved Hide resolved
Zone.js support `Angular package format` since `0.11`, but the `fesm2015` bundles
are not `esm` format, it still use `umd` bundle which is not correct, in this PR,
a new `esm` bundle output is added in `rollup_bundle` rule under `tools`, so
zone.js can use the new rule to generate `esm` bundles.
@ngbot ngbot bot added this to the needsTriage milestone Oct 13, 2020
@mhevery mhevery added the action: merge The PR is ready for merge by the caretaker label Oct 15, 2020
@atscott atscott closed this in 497af77 Oct 15, 2020
@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 Nov 15, 2020
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: zones cla: yes target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants