You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see, I use getWebpackEntryPoints to add entry points for each block in the plugin.
Using version 26.19.0 the correct files for each block are copied and/or compiled on build (i.e. render.php, index.js, style-index.css etc).
When updating to version 27.0.0 this no longer works. Only block.json and render.php are added to the build folder for each block.
And printing out the output of getWebpackEntryPoints only prints out "[Function (anonymous)]" instead of the object with entry points (as in version 26.19.0)
Step-by-step reproduction instructions
N/A
Screenshots, screen recording, code snippet
No response
Environment info
Wordpress 6.4.2
@wordpress/scripts 27.0.0
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered:
Using package internal methods from @wordpress/scripts/utils is risky as we never committed to making it public API. I’m glad you made it work by updating the webpack config. By the way, we only made an exception for documenting how to extend the default webpack config due to high demand, but it’s very hard iterating on it without introducing some unintentional issues from time to time.
Description
I have a plugin where I keep a large number of blocks and use @wordpress/scripts.
My webpack.config.js looks like this:
As you can see, I use getWebpackEntryPoints to add entry points for each block in the plugin.
Using version 26.19.0 the correct files for each block are copied and/or compiled on build (i.e. render.php, index.js, style-index.css etc).
When updating to version 27.0.0 this no longer works. Only block.json and render.php are added to the build folder for each block.
And printing out the output of getWebpackEntryPoints only prints out "[Function (anonymous)]" instead of the object with entry points (as in version 26.19.0)
Step-by-step reproduction instructions
N/A
Screenshots, screen recording, code snippet
No response
Environment info
Wordpress 6.4.2
@wordpress/scripts 27.0.0
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: