webpack/weblabels-plugin: Fix Web Labels table in production mode
Closed
requested to merge generated-differential-D5241-source into generated-differential-D5241-target
Recent changes in webpack modified the content of the JSON stats object when compiling assets in production mode. Notably a module chunk is now identified by an integer instead of its name.
So add an extra mapping between a chunk id and its name in order to fix the generated Web Labels table.
This plugin definitely needs to have some tests.
@vlorentz started this work in !75 (closed) but I will create a task to not forget about it.
Migrated from D5241 (view on Phabricator)
Merge request reports
Activity
Build is green
Patch application report for D5241 (id=18785)
Rebasing onto 20da34e9...
Current branch diff-target is up to date.
Changes applied before test
commit 584887952476547dbdeba04eb9bdf227d2b537e1 Author: Antoine Lambert <antoine.lambert@inria.fr> Date: Fri Mar 12 16:54:56 2021 +0100 webpack/weblabels-plugin: Fix Web Labels table in production mode Recent changes in webpack modified the content of the JSON stats object when compiling assets in production mode. Notably a module chunk is now identified by an integer instead of its name. So add an extra mapping between a chunk id and its name in order to fix the generated Web Labels table.
See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/621/ for more details.
I will create a task to not forget about it.
Please register or sign in to reply