Build tool
Vite
Where do you see the problem?
Describe the bug
Vite, in defineConfig() allows the option to configure whether to include vite manifest or not, residing in dist/.vite/manifest.json (that is not chrome extension manifest).
export default defineConfig({
build: {
manifest: false,
},
});
When set to true, it outputs .vite/manifest.json to the dist/ folder. If ignored or set to false, then it doesn't. By default, it doesn't.
Now, with plugin crx(), that file is always yielded (despite vite default not sets that), and even worse, when explicitly set to false, it still issues that.
I want to distribute a clean extension, I don't want .vite there.
Reproduction
Bundle a chrome extension using vite, and see that in dist/ directory, there is .vite/manifest.json.
Logs
System Info
System:
OS: Windows 10 10.0.19045
CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700KF
Memory: 47.39 GB / 63.85 GB
Binaries:
Node: 24.4.0 - C:\Users\Daniel\AppData\Local\Temp\yarn--1762546633265-0.9206406361791588\node.CMD
Yarn: 1.22.19 - C:\Users\Daniel\AppData\Local\Temp\yarn--1762546633265-0.9206406361791588\yarn.CMD
npm: 11.4.2 - D:\Program Files\node\node-v24.4.0-win-x64\npm.CMD
Browsers:
Chrome: 141.0.7390.108
Edge: Chromium (140.0.3485.54)
npmPackages:
@crxjs/vite-plugin: ^2.0.3 => 2.2.1
vite: ^7.0.5 => 7.2.2
Severity
annoyance
Build tool
Vite
Where do you see the problem?
Describe the bug
Vite, in
defineConfig()allows the option to configure whether to include vite manifest or not, residing indist/.vite/manifest.json(that is not chrome extension manifest).When set to true, it outputs
.vite/manifest.jsonto thedist/folder. If ignored or set tofalse, then it doesn't. By default, it doesn't.Now, with plugin
crx(), that file is always yielded (despite vite default not sets that), and even worse, when explicitly set tofalse, it still issues that.I want to distribute a clean extension, I don't want
.vitethere.Reproduction
Bundle a chrome extension using vite, and see that in
dist/directory, there is.vite/manifest.json.Logs
System Info
System: OS: Windows 10 10.0.19045 CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700KF Memory: 47.39 GB / 63.85 GB Binaries: Node: 24.4.0 - C:\Users\Daniel\AppData\Local\Temp\yarn--1762546633265-0.9206406361791588\node.CMD Yarn: 1.22.19 - C:\Users\Daniel\AppData\Local\Temp\yarn--1762546633265-0.9206406361791588\yarn.CMD npm: 11.4.2 - D:\Program Files\node\node-v24.4.0-win-x64\npm.CMD Browsers: Chrome: 141.0.7390.108 Edge: Chromium (140.0.3485.54) npmPackages: @crxjs/vite-plugin: ^2.0.3 => 2.2.1 vite: ^7.0.5 => 7.2.2Severity
annoyance