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.
In WordPress/gutenberg#57461 wp-scripts introduced special handling for the
scriptModule&viewScriptModuleproperties inblock.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.