Skip to content

Automatic dependency extraction #79

@johnbillion

Description

@johnbillion

The @wordpress/scripts package 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.

Is this something that could be bundled with Webpack Helpers?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions