Open dword-design opened 4 months ago
Hmm, interesting. I've never tried using the build
call directly, but I would have expected it to work just fine.
I probably won't have time to work on this, I'm really focused on WXT right now.
@aklinker1 Addition: it works when setting webExtension({ htmlViteConfig: { plugins: [vue()] } })
, but of course it's only a quickfix.
Same issue applies for a custom build.outDir
. Manifest is built it the correct dir, the other files are built unter the default dist
dir.
Summary
I get a Vue parse error when I build with Vite programmatically and pass the config directly to
build
.It does work with Vite createServer and it also works when the config is in
vite.config.js
.Reproduction
https://github.com/dword-design/demo-vite-plugin-web-extension-bug-build-programmatically