-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@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.js
file to themodules
folder.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.js
file to themodules
folder to make it work with the current logic.Testing Instructions
importmap-polyfill.js
file is downloaded correctly.