alleyinteractive / alleyinteractive/alley-scripts

Add support for block metadata viewScriptModule field

オープン
#685 コメント 1 件 リアクション 0 件 担当者 1 名 @kaitlinbolling が担当を希望しています GitHub で見る
enhancement gutenberg typescript
主要言語
TypeScript
スター
10
フォーク
3
平均マージ
4日 22時間
マージ済み PR(30日)
2

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。