alleyinteractive / alleyinteractive/alley-scripts

Add support for block metadata viewScriptModule field

Abierto
#685 1 comentario 0 reacciones 1 asignado Reclamado por @kaitlinbolling Ver en GitHub
enhancement gutenberg typescript
Lenguaje dominante
TypeScript
Estrellas
10
Forks
3
Merge medio
4 d 22 h
PR fusionados (30 d)
2

Descripción

### 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.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.