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 0f7684a commit d88c581Copy full SHA for d88c581
packages/plugin-react/src/index.ts
@@ -326,6 +326,14 @@ const silenceUseClientWarning = (userConfig: UserConfig): BuildOptions => ({
326
) {
327
return
328
}
329
+ // https://github.com/vitejs/vite/issues/15012
330
+ if (
331
+ warning.code === 'SOURCEMAP_ERROR' &&
332
+ warning.message.includes('resolve original location') &&
333
+ warning.pos === 0
334
+ ) {
335
+ return
336
+ }
337
if (userConfig.build?.rollupOptions?.onwarn) {
338
userConfig.build.rollupOptions.onwarn(warning, defaultHandler)
339
} else {
0 commit comments