This task involves updating node packages and integrating support for JavaScript modules in the project. This update primarily focuses on enhancing the theme scripts for the Interactivity API and ensuring compatibility with the latest dependencies. Without breaking the existing functionality.
Acceptance Criteria:
[ ] Update package.json to include the latest dependencies without breaking the existing functionality.
[ ] Update wp-script dependency to version 27.6.0.
[ ] Add @wordpress/interactivity as a dependency.
[ ] Modify scripts to include the --experimental-modules flag.
[ ] Configure WebpPack to enable experimental module features:
Summary:
This task involves updating node packages and integrating support for JavaScript modules in the project. This update primarily focuses on enhancing the theme scripts for the Interactivity API and ensuring compatibility with the latest dependencies. Without breaking the existing functionality.
Acceptance Criteria:
--experimental-modules
flag.wp_enqueue_script_module
.modules
inassets/src/js
.modules
folder to demonstrate the implementation of JavaScript modules in the project.