-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[chore] refactor AMP validation #3554
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
Conversation
🦋 Changeset detectedLatest commit: 032c916 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
✔️ Deploy Preview for kit-demo canceled. 🔨 Explore the source changes: 032c916 🔍 Inspect the deploy log: https://app.netlify.com/sites/kit-demo/deploys/61f2c596e161710007ab990e |
Rich-Harris
left a comment
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.
it might be worth adding a test for this somehow?
|
We do have amp tests already in |
Make the AMP validation happen in a
handlehook. This should fix #3330 (it won't allow disabling it, but it will make it so that it's correct) and be a step towards #2603. It wouldn't be hard to move this to an external package for users to call. However, the actual AMP HTML generation is pretty tied into SvelteKit and I'm not sure how we'd change that