[wp-trac] [WordPress Trac] #63887: Add sourceURL to inline scripts and styles
WordPress Trac
noreply at wordpress.org
Mon Sep 1 11:40:00 UTC 2025
#63887: Add sourceURL to inline scripts and styles
--------------------------------------+------------------------------
Reporter: jonsurrell | Owner: jonsurrell
Type: enhancement | Status: reopened
Priority: normal | Milestone: 6.9
Component: Script Loader | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: javascript, css
--------------------------------------+------------------------------
Comment (by jonsurrell):
SourceURL support can be tested with snippets like the following on the
browser console:
{{{
eval('console.log(1);//# sourceURL=ok')
// 1 ok:1
eval('console.log(1);/*# sourceURL=ok */')
// 1 VM1234:1
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63887#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list