WXT should bundle multiple background.js
scripts like it does with content.js
#1038
Labels
background.js
scripts like it does with content.js
#1038
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: