We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7b3308 commit 3b0837eCopy full SHA for 3b0837e
packages/vite/src/node/plugins/manifest.ts
@@ -166,7 +166,10 @@ export function manifestPlugin(): Plugin {
166
}
167
168
for (const originalFileName of chunk.originalFileNames.slice(1)) {
169
- manifest[originalFileName] = asset
+ const file = manifest[originalFileName]?.file
170
+ if (!(file && endsWithJSRE.test(file))) {
171
+ manifest[originalFileName] = asset
172
+ }
173
174
175
0 commit comments