humanmade / humanmade/webpack-helpers
Automatic dependency extraction
- Dominant language
- JavaScript
- Stars
- 29
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
The [`@wordpress/scripts` package](https://developer.wordpress.org/block-editor/packages/packages-scripts/) includes a really neat feature which calculates the dependencies of a script automatically, and writes them to a `dependencies` property in `index.asset.php`. The idea is that you pass this property into the `$deps` parameter when enqueuing the script, meaning you don't need to manually figure out your WordPress-provided script dependencies and keep them up to date.
I believe this functionality is provided by the [@wordpress/dependency-extraction-webpack-plugin package](https://developer.wordpress.org/block-editor/packages/packages-dependency-extraction-webpack-plugin/).
Is this something that could be bundled with Webpack Helpers?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.