alleyinteractive / alleyinteractive/alley-scripts
Add support for block metadata viewScriptModule field
Offen
#685
1 Kommentar
0 Reaktionen
1 zugewiesene Person
Beansprucht von @kaitlinbolling
Auf GitHub ansehen
enhancement
gutenberg
typescript
- Vorherrschende Sprache
- TypeScript
- Sterne
- 10
- Forks
- 3
- Ø Merge
- 4 T. 22 Std.
- Gemergte PRs (30 T.)
- 2
Beschreibung
### Description
We should add support for the `viewScriptModule` metadata field so that we can make use of the Interactivity API. This will require supporting the wp-scripts `--experimental-modules` flag, which changes the default Webpack configuration. See https://make.wordpress.org/core/2024/03/04/block-metadata-viewscriptmodule-field-in-6-5/
### Use Case
When a developer defines the `viewScriptModule` field in a block's metadata registration, it should compile appropriately so that the script runs correctly on the front end.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.