#2608·wxt

Add support for "content.svelte" content scripts

Author: KovalchukDanil0Created Aug 31, 2026Updated Aug 31, 2026

Feature Request

In Svelte 5 it's possible to use "svelte.{js,ts}" extension files to use svelte runes inside, however when trying this in WXT as "test.content.svelte.{js,ts}" it outputs the correct file, but content script not runs in the browser and producing "Unchecked runtime.lastError: The message port closed before a response was received." error

Image

This would be useful in case Svelte props should be amended at runtime. As in my case when I am kinda trying to catch Adobe Analytics analytics request and display it on the page

Is your feature request related to a bug?

N/A

What are the alternatives?

To use legacy Svelte API, but they will be removed in the future

Additional context

https://svelte.dev/docs/svelte/svelte-js-files

Unchecked runtime.lastError: The message port closed before a response was received. generic-67DrFc4U.mjs:32 Uncaught (in promise) Error: No response