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

feat(examples): update examples/angular to new rollup_bundle #1238

Merged

Conversation

gregmagolan
Copy link
Collaborator

@gregmagolan gregmagolan commented Oct 4, 2019

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

@gregmagolan gregmagolan requested a review from alexeagle October 4, 2019 21:01
@gregmagolan gregmagolan requested a review from soldair as a code owner October 4, 2019 21:01
@gregmagolan gregmagolan force-pushed the examples_angular_rollup_bundle branch 2 times, most recently from 643bd07 to 8c2f447 Compare October 4, 2019 21:34
@gregmagolan gregmagolan force-pushed the examples_angular_rollup_bundle branch 2 times, most recently from 2254875 to 85b1cd1 Compare October 4, 2019 21:58
@gregmagolan gregmagolan force-pushed the examples_angular_rollup_bundle branch 2 times, most recently from dc5b2f9 to 9a9f6bc Compare October 5, 2019 14:48
- 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
Copy link
Collaborator

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?

Copy link
Collaborator Author

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",
Copy link
Collaborator

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

Copy link
Collaborator Author

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.

packages/karma/src/karma_web_test.bzl Outdated Show resolved Hide resolved
examples/angular/src/BUILD.bazel Outdated Show resolved Hide resolved
examples/angular/src/lib/shorten/BUILD.bazel Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants