Opened 6 weeks ago
Closed 2 weeks ago
#65007 closed defect (bug) (fixed)
Contents of some `.min.js` files are no longer minified
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 7.0 | Priority: | normal |
| Severity: | normal | Version: | trunk |
| Component: | Build/Test Tools | Keywords: | fixed-major commit dev-reviewed |
| Focuses: | Cc: |
Description
The contents of 4 files are no longer minified despite that being the case in 6.9:
wp-polyfill-node-contains.min.jswp-polyfill-dom-rect.min.jsregenerator-runtime.min.jswp-polyfill-fetch.min.js
Follow up to #64393.
Attachments (2)
Change History (10)
This ticket was mentioned in PR #11418 on WordPress/wordpress-develop by @desrosj.
6 weeks ago
#2
- Keywords has-patch added
This ticket was mentioned in Slack in #core-test by r1k0. View the logs.
5 weeks ago
#4
@
5 weeks ago
Patch Testing Report
Patch Tested: https://github.com/WordPress/wordpress-develop/pull/11418
Environment
- WordPress: 7.1-alpha-20260407.182057
- PHP: 8.3.30
- Server: PHP.wasm
- Database: WP_SQLite_Driver (Server: 8.0.38 / Client: 3.51.0)
- Browser: Opera
- OS: macOS
- Theme: Twenty Twenty-Five 1.4
- MU Plugins: None activated
- Plugins:
- Test Reports 1.2.1
Steps taken
- Run
npm run buildin your WordPress Develop folder cloned from the GitHub repo https://github.com/WordPress/wordpress-develop. - Observe the following files in
wp-includes/js/dist/vendor/that they are not minified.
wp-polyfill-node-contains.min.jswp-polyfill-dom-rect.min.jsregenerator-runtime.min.jswp-polyfill-fetch.min.js
- Apply the patch.
- Rerun
npm run build. - Observe the files again and confirm that they are the minified versions.
- ✅ Patch is solving the problem.
Expected result
- We expect to see the minified versions of the
.min.jsfiles in thewp-includes/js/dist/vendor/folder.
Screenshots/Screencast with results
#5
@
3 weeks ago
- Owner set to peterwilsoncc
- Resolution set to fixed
- Status changed from new to closed
In 62258:
Note: See
TracTickets for help on using
tickets.


The
tools/vendor/copy-vendors.jsfile was added in r61438 to copy files from thenode_modulesdirectory the appropriate location in built WordPress. This was previously handled by Webpack, but the majority of the Webpack code was also removed as part of that change.In Grunt, there is a
grunt copytask that is used to handle copying of files, and there is even acopy:vendor-jssubtask. This moves all of the vendor file paths into this task to keep all vendor copying logic in one place.Trac ticket: Core-65007. See also: Core-64393.
## Use of AI Tools
AI assistance: Yes
Tool(s): Claude
Model(s): Sonnet 4.6
Used for: Created the initial first draft of the PR.