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

WordPress Trac noreply at wordpress.org
Thu Sep 26 15:00:42 UTC 2019

#48154: Build Tools: Integrate DependencyExtractionWebpackPlugin in the JS build
 Reporter:  gziolo            |      Owner:  (none)
     Type:  enhancement       |     Status:  assigned
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:  has-patch dev-feedback
  Focuses:  javascript        |
 This is a try to integrate DependencyExtractionWebpackPlugin which we
 battle-tested in Gutenberg.

 This webpack plugin serves two purposes:

 - Externalize dependencies that are available as script dependencies on
 modern WordPress sites.
 - Add an asset file for each entry point that declares an object with the
 list of WordPress script dependencies for the entry point. The asset file
 also contains the current version calculated for the current source code.

 This will greatly simplify the process of upgrading npm packages which
 change after every Gutenberg release. It might even useful during the
 WordPress release cycle as we might need to publish more often as we
 discover critical bugs and regressions.

 Code also available at https://github.com/WordPress/wordpress-
 develop/pull/102 where I test its integration with Travis.

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

More information about the wp-trac mailing list