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
@crxjs/vite-plugin will break Typescript project build if build.rollupOptions.inputs added, because pluginFileWriter strips all plugins except .startsWith("crx:") and rollup does not like it.
Why do I have to add additional entry point?
Because I want to use browser.scripting.executeScript on user action, so I need to compile and emit a file that isn't mentioned in manifest.json.
Workaround:
and it as content_scripts with with matchesftp://with-match-that-will-never-match.lv
Reproduction
Add another entry point to build.rollupOptions.inputs vite config
Build tool
Vite
Where do you see the problem?
Describe the bug
@crxjs/vite-plugin will break Typescript project build if
build.rollupOptions.inputs
added, becausepluginFileWriter
strips all plugins except.startsWith("crx:")
and rollup does not like it.Why do I have to add additional entry point?
Because I want to use
browser.scripting.executeScript
on user action, so I need to compile and emit a file that isn't mentioned in manifest.json.Workaround:
and it as
content_scripts
with withmatches
ftp://with-match-that-will-never-match.lv
Reproduction
Add another entry point to
build.rollupOptions.inputs
vite configLogs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: