aklinker1 / vite-plugin-web-extension

Vite plugin for developing Chrome/Web Extensions
https://vite-plugin-web-extension.aklinker1.io/
MIT License
574 stars 48 forks source link

Support `import` in content scripts #1

Closed aklinker1 closed 2 years ago

aklinker1 commented 2 years ago

Currently, imports don't work in content scripts and background scripts (unless type: "module" for background service_worker)

Seems like an easy fix would be to default manualChunks: undefined in build.rollupOptions.outputs

aklinker1 commented 2 years ago

This doesn't work, we'll have to include a lib vite build in parallel with the standard build to get this working for content scripts

aklinker1 commented 2 years ago

This was fixed a long time ago lol