[wp-trac] [WordPress Trac] #65260: Emoji detection script breaks the script modules import map in the Site Editor
WordPress Trac
noreply at wordpress.org
Sat May 23 10:04:50 UTC 2026
#65260: Emoji detection script breaks the script modules import map in the Site
Editor
--------------------------------------+------------------------------
Reporter: wildworks | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Abilities API | Version: 6.9
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------------
Comment (by jonsurrell):
> I confirmed that this issue still reproduces. However, it seems to occur
in browsers other than Firefox as well. This might be a separate issue.
I've been unable to reproduce this (on trunk at
`ac539ca198ccef82c26d79a716cc22cf3750f240` which includes r62410).
It's very surprising because we can see the module specifier in the
importmap in the shared snippet: `"@wordpress/abilities":
"…/abilities/index.js?ver=…"`.
A possible explanation that comes to mind is the context. In the editor-
canvas iframe, the module is unlikely to be available (see #64360). The
`@wordpress/abilities` module should be available to import in the top
context where the importmap is included. If I change the context to the
site-editor iframe or try to use it in a script in that context I see the
same errors.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65260#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list