[wp-trac] [WordPress Trac] #48154: Build Tools: Integrate DependencyExtractionWebpackPlugin in the JS build
WordPress Trac
noreply at wordpress.org
Thu Mar 12 04:28:26 UTC 2020
#48154: Build Tools: Integrate DependencyExtractionWebpackPlugin in the JS build
-------------------------------------+-------------------------
Reporter: gziolo | Owner: gziolo
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 5.5
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: needs-patch 2nd-opinion | Focuses: javascript
-------------------------------------+-------------------------
Comment (by azaozz):
Replying to [comment:79 peterwilsoncc]:
> Mainly seeing it switching branch to branch
Right, managed to reproduce it too when "updating" to older revisions.
> Without `wp-includes/assets/script-loader-packages.php`, the JavaScript
can not be run (no dependency array) and as it's generated during the
build processes the remaining instructions in `/src/index.php` are enough.
Yes, makes sense to test for the existence of `script-loader-
packages.php`, 48154-update-file-check.diff looks good. Ignoring the `wp-
includes/assets` directory should fix the above bugs.
Also thinking we can perhaps do a Grunt `clear` of `/src/wp-
includes/assets/**` before running Webpack in `dev` mode. This will help
deleting left-over unversioned files there.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48154#comment:80>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list