Skip to content

avoid conflict with importmaps - #11

Merged
jdeniau merged 1 commit into
mainfrom
fix-issue-with-importmaps
Aug 26, 2026
Merged

avoid conflict with importmaps#11
jdeniau merged 1 commit into
mainfrom
fix-issue-with-importmaps

Conversation

@jdeniau

@jdeniau jdeniau commented Aug 26, 2026

Copy link
Copy Markdown
Member

Run the formatter as a world: "MAIN" content script instead of injecting a <script type="module"> into the page. The module load started before the page's own <script type="importmap"> was parsed, which made the browser reject that import map and broke every module-based script on the page (GitHub, since they shipped an import map). The extension now adds no node to the DOM, needs no web_accessible_resources, and is no longer visible to the page. Requires Chrome 111+ / Firefox 128+.

@jdeniau
jdeniau merged commit 4d2966d into main Aug 26, 2026
1 check passed
@jdeniau
jdeniau deleted the fix-issue-with-importmaps branch August 26, 2026 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant