10up / 10up-toolkit

Official 10up asset building toolkit.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for WordPress `scriptModule` & `viewScriptModule`

fabiankaegy opened this issue · comments

In WordPress/gutenberg#57461 wp-scripts introduced special handling for the scriptModule & viewScriptModule properties in block.json.

This new handling causes the scripts registered through that mechanism to get output as js modules.

In order to support the interactivity API we need to mirror this config in toolkit.

@Antonio-Laguna @nicholasio I think this here should be a priority for us to get it integrated in toolkit close to when WordPress 6.5 launches (Mach 26th)