-
Notifications
You must be signed in to change notification settings - Fork 3k
Build bazel umds #4309
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 bazel umds #4309
Conversation
fb6f53b to
6a6cd77
Compare
Generated by 🚫 dangerJS |
6a6cd77 to
54d9f29
Compare
Pull Request Test Coverage Report for Build 7674
💛 - Coveralls |
|
I am open for both as well. Depends on what they prefer. I can split them
in several Pr if it’s preferred.
…On Wed, 07 Nov 2018 at 15:07, Alex Eagle ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In tools/rollup-bundle.js
<#4309 (comment)>:
> + rollupNodeResolve({
+ jsnext: true,
+ }),
+ rollupInject({
+ exclude: 'node_modules/**',
+ modules: _.mapValues(tslib, function (value, key) {
+ return ['tslib', key];
+ }),
+ }),
+ ],
+ }).then(function (bundle) {
+ return bundle.generate({
+ format: 'umd',
+ name: 'rxjs',
+ amd: {
+ id: 'rxjs'
I see - depending on what the rxjs maintainers prefer, it might be easier
to land in two PRs: update rollup version, and separately change the id and
remove Bazel files
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4309 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AQv-WklybJGYfuO545hOsvxWbovtA4Fnks5usvcXgaJpZM4YD1Rv>
.
|
pertrai1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see it better for the changelog if there were 2 PR's:
- update rollup version
- change the id and remove Bazel files
|
@pertrai1, there are 2 commits, and thus there is no difference in the changelog, apart from that these are |
|
Thinking a bit more: removing the Bazel files is a breaking change and should probably land later? |
|
At least the rollup upgrade should be it's own commit |
54d9f29 to
013cd20
Compare
|
Yeah I think I makes sense to do it afterwards. Updated. |
013cd20 to
7cd99e2
Compare
237c64d to
06cdd89
Compare
This is required so that we can use named UMDs with named AMD, since these are required in Bazel (ts_devserver). This feature doesn't work in the current version rollup. Rollup's API also changed quite a bit, thus the large refactoring.
This is because otherwise sourcemaps will not be mapped for UMD bundles
This solved the issue is that to run in devmode with Bazel (ts_devserver) you need a named named AMD bundle (or a UMD bundle with named AMD). RXJS doesn’t ship one of these so we’re forced to build rxjs from source so get named AMD source files
06cdd89 to
e174615
Compare
Description:
This PR adds AMD ids in UMD bundles, sourceMapUrl in UMD bundle, and remove Bazel files
//cc @alexeagle & @gregmagolan
Ps: I can split this into multiple PR, if you'd like.