Modules: Fix import map polyfill not being copied on the generated plugin ZIP#56655
Conversation
|
This pull request has changed or added PHP files. Please confirm whether these changes need to be synced to WordPress Core, and therefore featured in the next release of WordPress. If so, it is recommended to create a new Trac ticket and submit a pull request to the WordPress Core Github repository soon after this pull request is merged. If you're unsure, you can always ask for help in the #core-editor channel in WordPress Slack. Thank you! ❤️ View changed files❔ lib/experimental/interactivity-api/modules.php |
|
Size Change: -12.2 kB (-1%) Total Size: 1.72 MB
ℹ️ View Unchanged
|
|
@luisherranz @c4rl0sbr4v0 checking; should this be backported to the current 17.2 RC? Seems like its milestone was set for 17.3, but I'm guessing that's not correct. |
|
Backported to 17.2 RC |
|
Thanks @vcanales , it is better to have it on 17.2 than waiting for the next release 😅 |
What?
Move the
importmap-polyfill.jsfile to themodulesfolder.Why?
Because the build script doesn't copy anything outside folders (notice the single
*):ls build/*/*.{js,js.map,css,asset.php}https://github.com/WordPress/gutenberg/blob/trunk/bin/build-plugin-zip.sh#L82
How?
I tried with
ls build/**/*.{js,js.map,css,asset.php}, but that generated a lot of extra files. So I just moved theimportmap-polyfill.jsfile to themodulesfolder to make it work with the current logic.Testing Instructions
importmap-polyfill.jsfile is downloaded correctly.