-
Notifications
You must be signed in to change notification settings - Fork 519
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
feat(examples): update examples/angular to new rollup_bundle #1238
feat(examples): update examples/angular to new rollup_bundle #1238
Conversation
643bd07
to
8c2f447
Compare
2254875
to
85b1cd1
Compare
dc5b2f9
to
9a9f6bc
Compare
- return ts_providers_dict_to_struct(ng_module_impl(ctx, compile_ts)) | ||
+ ts_providers = ng_module_impl(ctx, compile_ts) | ||
+ | ||
+ # Add in new JS providers |
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.
will you send the Angular PR also if you haven't already?
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.
already added to angular/angular#32889
@@ -20,6 +20,8 @@ example_integration_test( | |||
npm_packages = { | |||
"//packages/karma:npm_package": "@bazel/karma", | |||
"//packages/protractor:npm_package": "@bazel/protractor", | |||
"//packages/rollup:npm_package": "@bazel/rollup", |
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.
we should add the deprecation warning in rules_nodejs now that we've shaken out issues with new rule
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 agree. follow up PR I think so we don't mix concerns.
9a9f6bc
to
12241e7
Compare
Note: the new rollup_bundle will still have trouble with ng_module outputs that are non-Ivy as the generated
.ngfactory
&.ngsummary
files have absolute imports that are not resolvable without the require patch. There is also a flaky'default' is not exported
error that shows up while bundling much of the time but not always related to the bundling the.ngfactory
&.ngsummary
files. In short, there is some work to do to get the new rollup_bundle working with ViewEngine.Update: new rollup_bundle now working with Angular ViewEngine here #1252 with a few work-arounds in the rollup.config