You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
aklinker1
changed the title
MXT should bundle multiple background.js scripts like it does with content.js
WXT should bundle multiple background.js scripts like it does with content.jsOct 3, 2024
Feature Request
Currently it is easy to modularize the
content
scripts in theentrypoints
folder by simply appending.content.ts
to the file name.Add the same ability to
background.js
.Is your feature request related to a bug?
N/A
What are the alternatives?
From @aaronklinker-st :
For now, a quick fix to using multiple background scripts is to use Vite's glob import:
Then put your other files in like
background/some-name.background.ts
Additional context
https://discord.com/channels/1212416027611365476/1290896813850886197
The text was updated successfully, but these errors were encountered: