Skip to content

Prevent tree-shaking class names for amp-geo when component on page#2017

Merged
westonruter merged 1 commit intodevelopfrom
fix/dynamic-class-name-tree-shaking-amp-geo
Mar 22, 2019
Merged

Prevent tree-shaking class names for amp-geo when component on page#2017
westonruter merged 1 commit intodevelopfrom
fix/dynamic-class-name-tree-shaking-amp-geo

Conversation

@westonruter
Copy link
Copy Markdown
Member

Conditional tree shaking for dynamic class names was added in #1959, but it missed handling class names added for amp-geo. See support topic.

This PR will prevent tree shaking the classes when the amp-geo component is used on the page:

  • amp-geo-pending
  • amp-geo-no-group
  • amp-geo-group-
  • amp-iso-country-

See #1490.

Build of plugin for testing: amp.zip (v1.1-alpha-20190322T203831Z-f45def68)

@westonruter westonruter added this to the v1.1 milestone Mar 22, 2019
@googlebot googlebot added the cla: yes Signed the Google CLA label Mar 22, 2019
@douglasferraz89
Copy link
Copy Markdown

This prevented tree-shaking class names for amp-geo when component on page. Working perfectly.

@westonruter westonruter requested a review from amedina March 22, 2019 20:55
Copy link
Copy Markdown
Member

@amedina amedina left a comment

Choose a reason for hiding this comment

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

Ship it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Signed the Google CLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants