This repository has been archived by the owner on May 2, 2022. It is now read-only.
Add @wordpress/scripts
like auto generation of wp script dependencies
#185
Labels
Is your enhancement related to a problem? Please describe.
It's always a struggle manual having to manage the different dependencies a js file needs. (eg.
wp-components
,wp-hooks
etc.) Just having them auto generate the same way the@wordpress/scripts
package does it would be very cool. Also the generated version would improve the workflow a bunch not having to clear cashes all the time.Describe the solution you'd like
Implementing something like the
@wordpress/scripts
package would be really cool.Using the impost syntax
import { Button } from '@wordpress/scripts
that then automatically generated a PHP file that has the array for all the dependencies in it.The generated PHP file would live inside the build folder and would look something like this
This would then allow us to do the following when actually enqueueing:
The text was updated successfully, but these errors were encountered: