Closed tcmulder closed 3 months ago
This has some great potential since:
But, it does currently come with some caveats:
v7.0.0_wpscripts
branch, but it's just an odd patch: it has difficulty handling similar files like view.css and view.js, attempting to override one with the other.--experimental-modules
working for viewScriptModule
and "interactivity": true
, but it won't even compile. (Since this is experimental, they may fix it, but it may only work for block development rather than block+theme development).Here are some good resources:
Acceptance criteria:
@wordpress/interactivity
remains unchanged in view.js
and the dependency in grd-view.asset.php
, but webpack currently rewrites those to wp.interactivity
and wp-interactivity
, respectively.
Currently I've got an experimental branch going,
v7.0.0_wpscripts
. There's also older work on av7.0.0_wpscripts_sass
branch in which I converted all .css files to .scss.