Page MenuHomePhabricator

Ship unminified sources when ResourceLoader's debug mode is enabled
Open, Stalled, MediumPublic

Description

Popups presently supplies a sourcemap for production debugging. This in itself is useful but unminified sources are preferable since the optimizer may alter the path of execution. This task encompasses the work to continue to ship production sources + sourcemap normally and, only when ResourceLoader's debug mode is enabled, ship unminified sources.

Acceptance criteria

  • Visiting a page with debug=1 loads the unminified sources
  • Visiting a page normally continues to load the minified sources

Event Timeline

Change 496825 had a related patch set uploaded (by Niedzielski; owner: Stephen Niedzielski):
[mediawiki/extensions/Popups@master] Build: use unminified outputs when debug=1

https://gerrit.wikimedia.org/r/496825

Jdlrobson triaged this task as Medium priority.Mar 15 2019, 9:57 PM
Jdlrobson moved this task from Needs Prioritization to Upcoming on the Web-Team-Backlog board.
Jdlrobson subscribed.

Proposal looks good to me. I am guessing the additional assets are not a problem given we have to commit them anyway and it sounds like it would help developers debug quicker. Given there's a patch it would be nice to get an estimation of risk for this one!

Niedzielski changed the task status from Open to Stalled.Mar 29 2019, 6:48 PM

It's not clear if new usages of debugScripts is allowed.

Change 496825 abandoned by Jdlrobson:

[mediawiki/extensions/Popups@master] Build: use unminified outputs when debug=1

Reason:

Presuming this change is abandoned. Please feel free to restore it if not!

https://gerrit.wikimedia.org/r/496825