Skip to content

♻️🚀 amp-story: Use Services.urlForDoc instead of util functions#38026

Merged
alanorozco merged 11 commits intoampproject:mainfrom
alanorozco:url-service
Apr 6, 2022
Merged

♻️🚀 amp-story: Use Services.urlForDoc instead of util functions#38026
alanorozco merged 11 commits intoampproject:mainfrom
alanorozco:url-service

Conversation

@alanorozco
Copy link
Copy Markdown
Member

@alanorozco alanorozco commented Apr 6, 2022

Since the service is provided by the runtime, using it prevents us from including duplicate util implementations in the amp-story bundle.

This reduces the size of amp-story-1.0 by 0.41kB in ESM and 0.82kB (!!!) in nomodule.

@alanorozco alanorozco requested a review from mszylkowski April 6, 2022 16:52
@alanorozco alanorozco marked this pull request as ready for review April 6, 2022 16:53
@amp-owners-bot
Copy link
Copy Markdown

amp-owners-bot bot commented Apr 6, 2022

Hey @gmajoulet! These files were changed:

extensions/amp-story-interactive/0.1/amp-story-interactive-abstract.js
extensions/amp-story-page-attachment/0.1/amp-story-page-attachment.js
extensions/amp-story/1.0/amp-story-consent.js
extensions/amp-story/1.0/amp-story-embedded-component.js
extensions/amp-story/1.0/amp-story-info-dialog.js
extensions/amp-story/1.0/amp-story-system-layer.js
extensions/amp-story/1.0/request-utils.js
extensions/amp-story/1.0/utils.js

Hey @mszylkowski! These files were changed:

extensions/amp-story-interactive/0.1/amp-story-interactive-abstract.js
extensions/amp-story-page-attachment/0.1/amp-story-page-attachment.js

Hey @newmuis! These files were changed:

extensions/amp-story-page-attachment/0.1/amp-story-page-attachment.js
extensions/amp-story/1.0/amp-story-consent.js
extensions/amp-story/1.0/amp-story-embedded-component.js
extensions/amp-story/1.0/amp-story-info-dialog.js
extensions/amp-story/1.0/amp-story-system-layer.js
extensions/amp-story/1.0/request-utils.js
extensions/amp-story/1.0/utils.js

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants