I would like to add include additional script handles to the dependencies in assets.php
using @wordpress/dependency-extraction-webpack-plugin.
An example for this would be a script that extends masonry
which is a script that is included and registered by WordPress.
masonry
from the 2 examples.@wordpress/scripts
. So you are saying that something like this should work: gist.github.com/grappler/d1b226565d8efb24cbadefe2712f3d15 What I am unsure about is how the import in my file should be and ifmasonry
needs to be part of thepackage.json