Production deployments need only the PHP files (inc/ directory and main plugin file) plus the build/ directory containing compiled JavaScript and block.json files.
Source code, node_modules, package.json, and development dependencies aren’t needed in production since the build directory contains everything required to run the blocks.
WordPress handles JavaScript dependencies through index.asset.php files that list required packages like React and @wordpress/blocks
, ensuring dependencies load automatically without bundling them.