In this PR, we add regenerator-runtime as a script dependency. This is a quick fix for a breaking change in WordPress 6.6.
I believe we may not need this quick fix in the future when we update the @wordpress/* packages and rely on Dependency Extraction (without bundling the packages).
Detailed test instructions:
Use WordPress 6.6.
Install and activate Pinterest extension with this PR.
Go to the Pinterest plugin landing page: /wp-admin/admin.php?page=wc-admin&path=%2Fpinterest%2Flanding. You should see the landing page nicely. There should be no console error.
Downgrade to WordPress 6.5.
Go to the Pinterest plugin landing page: /wp-admin/admin.php?page=wc-admin&path=%2Fpinterest%2Flanding. You should see the landing page nicely. There should be no console error.
Changes proposed in this Pull Request:
Closes https://github.com/woocommerce/pinterest-for-woocommerce/issues/1031. For the cause of issue and related readings on
regenerator-runtime
, see https://github.com/woocommerce/pinterest-for-woocommerce/issues/1031#issuecomment-2210937988.In this PR, we add
regenerator-runtime
as a script dependency. This is a quick fix for a breaking change in WordPress 6.6.I believe we may not need this quick fix in the future when we update the
@wordpress/*
packages and rely on Dependency Extraction (without bundling the packages).Detailed test instructions:
/wp-admin/admin.php?page=wc-admin&path=%2Fpinterest%2Flanding
. You should see the landing page nicely. There should be no console error./wp-admin/admin.php?page=wc-admin&path=%2Fpinterest%2Flanding
. You should see the landing page nicely. There should be no console error.