[wp-trac] [WordPress Trac] #24879: Sourcemaps should be provided for use with minified javascript libraries
WordPress Trac
noreply at wordpress.org
Wed Jul 23 13:33:32 UTC 2025
#24879: Sourcemaps should be provided for use with minified javascript libraries
-------------------------------------------------+-------------------------
Reporter: jblz | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future
| Release
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: dev-feedback needs-patch 2nd- | Focuses:
opinion |
-------------------------------------------------+-------------------------
Changes (by callumbw95):
* keywords: dev-feedback needs-patch => dev-feedback needs-patch 2nd-
opinion
Comment:
Hey Everyone,
I've just taken a quick look into this ticket, and I am not sure why this
ticket stalled but I believe providing sourcemaps for the minified
JavaScript libraries in WP is a massive win for the developer community
and is long overdue.
The primary benefit is a modern debugging experience, which is essential
for anyone working with WP's JavaScript, from the classic admin to the
block editor. This will lower the barrier for new contributors and make it
easier for everyone to build on WordPress.
The historical concerns about performance have been fully addressed now
that we know that they have zero impact on site performance for end-users,
as they are only loaded when developer tools are open.
However digging through the code within the `Gruntfile.js` it looks like
other historical tickets have had an impact on this, as there looks to
have been several tickets that have removed this functionality at various
points:
- #24994: jquery-1.10.2.min.map 404 error
- #46218: 404 error in source mapping in jquery.form.min.js
As of such I believe we should look into implementing this into the GitHub
and SVN versions of the site for developers who are contributing /
testing, but I don't believe this is necessary for the production release?
It would be good to get a second opinion here, and as of such I have
attached the `2nd-opinion` tag. 😃
--
Ticket URL: <https://core.trac.wordpress.org/ticket/24879#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list