[wp-trac] [WordPress Trac] #43731: Use Webpack + NPM scripts to build all the things

WordPress Trac noreply at wordpress.org
Thu Jun 20 12:53:11 UTC 2019


#43731: Use Webpack + NPM scripts to build all the things
------------------------------+-----------------------------
 Reporter:  omarreiss         |       Owner:  (none)
     Type:  task (blessed)    |      Status:  new
 Priority:  normal            |   Milestone:  Future Release
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+-----------------------------
Changes (by herregroen):

 * keywords:   => has-patch


Comment:

 Patch has been refreshed and seems to be fully functional.

 All unit tests pass and using a plain WordPress installations I've not
 been able to encounter any JS errors or bugs yet.

 Watch times on my system seem to average around 100ms. Part of achieving
 this was making it so all vendor and node_module dependencies aren't being
 watched. As `embed.js` needs a unique build process to avoid any
 ampersands in it it's also not watched. `emoji.js` is watched but the
 build that created `wp-emoji-release.min.js` is not part of the watch
 task. `wp-emoji-release.min.js` is also not built as it's a direct
 concatonation of `emoji.js` and the `twemoji.js` library.

 As such if we introduce loaders such as `babel-loader` to use ES6 features
 these won't be able to be used in that those two files ( `emoji.js` and
 `embed.js` ).

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


More information about the wp-trac mailing list