-
Notifications
You must be signed in to change notification settings - Fork 24
Upgrade this repo to angular 6 #32
Comments
We have some local patches to rxjs internally at google, I imagine some of those might be required to make it work with Closure Compiler - @vikerman would know? We should indeed update this repo to demonstrate Angular 6.0 before final, thanks for the reminder. I hope we'll be able to get to it, but it's possible we will run out of time, still fixing other Bazel-related things for the release. |
^ @alexeagle modified the original issue with a working conf. |
I can probably find some time to submit a PR, if above solution is workable. |
Would this require users to manually create the rxjs fesm and patch the package.json file? I think we'd rather figure out what is wrong with having closure import the individual files we compiled from rxjs, so this setup remains the same as what we do internally. |
Yeah, it is very hacky at this point, I agree. At first glance the paths in the es2015 rxjs modules seemed to be what are tripping closure compiler up and going back to cjs seems like a no go with rxjs-compat. |
it would be easier to follow if you included some snippets of the errors so we could compare against our internal fixes. |
@alexeagle ask and you shall receive. This is when referencing the _esm2015 modules.
The amount of errors are pretty immense so here is a snippet:
|
in Angular we have an integration test for this: |
In particular note that we use google-closure-compiler@20171023.0.1 - anything later is not known to work |
When I use a similar conf it builds OK, but in the browser console there is this error when trying to execute the bundle, so this may not be revealed by your integration tests? Using
It appears Zone is throwing the Error.
|
@alexeagle I tested the following:
|
OK, it would appear the issue with rxjs CJS may pertain to |
Can you phrase the problem in terms of a PR to the
integration/hello_world__closure directory that makes it use the router?
…On Tue, Apr 3, 2018 at 2:25 PM Steve Belovarich ***@***.***> wrote:
OK, it would appear the issue may pertain to @angular/router as I am able
to build this repo with ***@***.*** and ***@***.*** with
--process_common_js_modules
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAC5I2pW56uQlga8-8GjYBXhKRCgLC2jks5tk-i4gaJpZM4TEPec>
.
|
@alexeagle the rxjs esm2015 issue is reproducible in https://github.com/steveblue/closure-demo |
OK @alexeagle I don't think using the cjs modules are a sustainable path forward with rxjs 6.0.0 IMHO |
Fixed in 651ac47 @steveblue FYI my plan is to move development of this repo to https://github.com/angular/angular/tree/master/integration/hello_world__closure and automatically publish snapshots from green CI to this repo. |
I noticed the
@angular
packages have been updated to the latest Package Format 6.0 so I tried to update myclosure.conf
to mirror the changes. @alexeagle @gregmagolan is there any guidance for updating to 6.0.0? I think I figured it out.I got the below conf to bundle with
google-closure-compiler@20180319.0.0
,@angular@6.0.0-rc.1
andrxjs@6.0.0-beta.4
.I used rollup to bundle rxjs and rxjs/operators into FESM and then modified rxjs and rxjs/operators package.json to point to the FESM instead of the ES2015 bundles. Perhaps rxjs should include FESM by default, I doubt this would be hard for them to implement seeing as rollup just bundled these packages in ms.
The text was updated successfully, but these errors were encountered: