Skip to content

rollup_bundle: provide es5 UMD bundle #685

Closed

Description

@alexeagle

Currently we derive the umd output by running rollup on the es2015 sources:
https://github.com/bazelbuild/rules_nodejs/blob/11271418a6bbd2529170270a7e61dcc5167bb16d/internal/rollup/rollup_bundle.bzl#L490

For parity with currently published zone.js, we'd like an es5 UMD bundle. Perhaps it could be produced by running a tool like babel on the es2015 output, but this would be different from other outputs. More similar would be to create it from the output of _run_tsc

/cc @JiaLiPassion

Activity

  1. JiaLiPassion commented on Apr 16, 2019

    @JiaLiPassion
    Contributor

    Here is the changes zone.js needed, in current zone.js bundles, the following formats will be generated by rollup.

    1. es5 umd bundle.
    2. es5 umd minified bundle (minified by terser)
    3. es2015 umd bundle
    4. es2015 umd minified bundle (minified by terser)
      And in 1 and 2, the rollup config doesn’t involve any plugins such as commonjs, so the bundle does not have the commonJsGlobal variable declaration

    With bazel, now those features are needed to generate the same output with current zone.js bundles.

    1. support generate umd bundle without commonjs plugin.
    2. support generate umd bundle in es5 format (now only es2015 format is supported)
    3. support generate umd.min bundle (now min for umd is not supported)

    Thanks!

  2. added 4 commits that reference this issue on Apr 21, 2019
    65c1618
    07ca26f
    6efc433
    614743e
  3. added a commit that references this issue on Apr 24, 2019
    d70cf62
  4. added a commit that references this issue on Jun 6, 2019
    188ae59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions