[wp-trac] [WordPress Trac] #48154: Build Tools: Integrate DependencyExtractionWebpackPlugin in the JS build

WordPress Trac noreply at wordpress.org
Mon Feb 24 20:12:20 UTC 2020


#48154: Build Tools: Integrate DependencyExtractionWebpackPlugin in the JS build
------------------------------+-------------------------
 Reporter:  gziolo            |       Owner:  gziolo
     Type:  defect (bug)      |      Status:  reopened
 Priority:  normal            |   Milestone:  5.4
Component:  Script Loader     |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:  javascript
------------------------------+-------------------------

Comment (by azaozz):

 48154.2.diff implement the changes discussed above:
 - "Unignore" `wp-includes/assets` dir. That means the script-loader-
 packages.php file will be committed.
 - Clean up the loop in `wp_default_packages_scripts()`, remove the hard-
 coded `$package_translations` list and add translations based on whether
 the package has `'wp-i18n'` as dependency.
 - Rename the assets file to script-loader-packages.php (props ocean90).

 This should be ready to commit. The only thing that's different from the
 previous patch (apart from cleanup) is the way translations are added.

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


More information about the wp-trac mailing list