-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Build: Move packages that output script modules to v2 pipeline #72173
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
|
@sirreal Not sure if you're the one I should be ping but how do I test that the a11y script module is working properly? |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Size Change: +4 B (0%) Total Size: 2.07 MB
ℹ️ View Unchanged
|
#65123 has some testing instructions. I'm trying to follow them but they depend on some Interactivity API client side navigation and seem to be outdated. I'll try to test and provide instructions.
|
|
I don't think this is working correctly. Here's what I've done to test. Enqueue a script module that depends on import { speak } from '@wordpress/a11y';
const time = 1_000;
let i = 0;
setTimeout(() => {
setInterval(() => {
speak(i++ < 1 ? `Count: ${i}` : String(i));
}, time);
}, time * 2);Observe this on the browser console: [...document.querySelectorAll('[aria-live]')].map(e=>`${e.ariaLive}: ${JSON.stringify(e.textContent)}`)With this branch of Gutenberg active (I built the branch with
If I disable Gutenberg, it works as expected. I see the live regions update and a screen reader reads them aloud. |
78c1375 to
ac4f931
Compare
|
Thanks @sirreal good catch, it should be fixed with the latest commit. |
3c53ef5 to
7d0a76c
Compare
|
Flaky tests detected in 90ed5bc. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/18354608064
|
…ress#72173) Co-authored-by: youknowriad <[email protected]> Co-authored-by: sirreal <[email protected]>
Related #72032
What?
This continues the work on the v2 build pipeline and expands the number of packages built by the v2 pipeline.
The current PR focus on packages like "a11y" that use the "wpScriptModuleExports" flag to generate script modules to be registered in WordPress.
Testing instructions
npm run devlocally, changes some files in the said packages.