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

Show a warning when @HtmlImport is used in npm mode #6417

Merged
merged 4 commits into from
Sep 11, 2019

Conversation

mehdi-vaadin
Copy link
Contributor

@mehdi-vaadin mehdi-vaadin commented Sep 9, 2019

Fix #6401


This change is Reviewable

Copy link
Contributor

@ujoni ujoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that Flow tests did not bat an eye when you changed the behavior regarding @HtmlImport annotation, which implies that there is no test which verified that those annotations get converted into @JsModule annotations when those are not present.

Since we are only logging, I am not sure how we'd test for that in a sensible fashion. :\

Reviewed 2 of 3 files at r1, 1 of 1 files at r2.
Reviewable status: all discussions resolved, 0 of 1 LGTMs obtained

Copy link
Contributor Author

@mehdi-vaadin mehdi-vaadin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to my observation, the conversion of @HtmlImport into @JsModule doesn't work and since it was a temporary feature, we'd better remove the related code.

Reviewable status: all discussions resolved, 0 of 1 LGTMs obtained (waiting on @ujoni)

Copy link
Contributor

@ujoni ujoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 1 of 1 files at r3.
Reviewable status: :shipit: complete! all discussions resolved, 1 of 1 LGTMs obtained

@mehdi-vaadin mehdi-vaadin merged commit 8a9749c into master Sep 11, 2019
@mehdi-vaadin mehdi-vaadin deleted the issues/6401_html_import_in_npm_mode branch September 11, 2019 10:54
mehdi-vaadin added a commit that referenced this pull request Sep 13, 2019
* Show a warning when @HtmlImport is present with no @jsmodule or @CssImport

(cherry picked from commit 8a9749c)
mehdi-vaadin added a commit that referenced this pull request Sep 13, 2019
* Show a warning when @HtmlImport is present with no @jsmodule or @CssImport

(cherry picked from commit 8a9749c)
@mehdi-vaadin mehdi-vaadin added this to the 2.0.12 milestone Sep 16, 2019
@mehdi-vaadin mehdi-vaadin changed the title Show a warning when @HtmlImport is used in npm mpde Show a warning when @HtmlImport is used in npm mode Sep 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No warning nor deprecation for HtmlImport in Flow 2.0 npm mode.
2 participants