[wp-trac] [WordPress Trac] #60647: Script Modules: Allow modules to depend on existing WordPress scripts
WordPress Trac
noreply at wordpress.org
Fri Apr 5 10:50:07 UTC 2024
#60647: Script Modules: Allow modules to depend on existing WordPress scripts
-----------------------------+-------------------------
Reporter: jonsurrell | Owner: jonsurrell
Type: feature request | Status: assigned
Priority: normal | Milestone: 6.6
Component: Script Loader | Version: 6.5
Severity: normal | Resolution:
Keywords: has-patch | Focuses: javascript
-----------------------------+-------------------------
Comment (by cbravobernal):
Replying to [comment:13 azaozz]:
> Seems the way forward would be to deprecate the old-style scripts and
replace them with modules, then load them if/when a plugin enqueues them.
(Of course, for this the module would have to be able to co-exist with the
old-style script, and work together with it. This would probably be quite
tricky. But lets look when we get there.)
Can we apply a POC of this solution first to the most used ones?
Applying just to `i18n`, `api-fetch` or `core-data`. As far as I know,
community is asking to use core-data in the frontend too, and can be also
a reason to "update it" to be frontend compatible and module compatible.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60647#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list