[wp-trac] [WordPress Trac] #53192: Use hashed/deterministic moduleIDs in Webpack build.

WordPress Trac noreply at wordpress.org
Mon May 24 01:33:39 UTC 2021


#53192: Use hashed/deterministic moduleIDs in Webpack build.
-----------------------------------+-------------------------
 Reporter:  peterwilsoncc          |       Owner:  gziolo
     Type:  defect (bug)           |      Status:  reopened
 Priority:  normal                 |   Milestone:  5.7.3
Component:  Build/Test Tools       |     Version:  5.0
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch fixed-major  |     Focuses:  javascript
-----------------------------------+-------------------------

Comment (by peterwilsoncc):

 @gziolo I only noticed the media library used a separate webpack config
 after this was committed, so it may need changing too. I'm trying to
 decide whether to make this change on this or a separate ticket but wanted
 to give you advance warning.

 Here's an example of a built media file with numeric module IDs:
 https://github.com/WordPress/WordPress/blob/7670b7dca84fccc40ec4c3271075046dfc2f6f65
 /wp-includes/js/media-views.js#L91-L96

 The affected files are:
 * `/wp-includes/js/media-audiovideo.js`
 * `/wp-includes/js/media-audiovideo.min.js`
 * `/wp-includes/js/media-grid.js`
 * `/wp-includes/js/media-grid.min.js`
 * `/wp-includes/js/media-models.js`
 * `/wp-includes/js/media-models.min.js`
 * `/wp-includes/js/media-views.js`
 * `/wp-includes/js/media-views.min.js`

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53192#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list