-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Closed
Labels
feat: cssp2-nice-to-haveNot breaking anything but nice to have (priority)Not breaking anything but nice to have (priority)
Description
Describe the bug
Since the update from vite v2 to v3 I get the following warning when I run yarn build:
Is there a way to suppress such warnings? I can't correct "overflow-X" because this comes from an external node module.
my configuration:
import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';
// https://vitejs.dev/config/
export default defineConfig({
build: {
chunkSizeWarningLimit: 4000,
outDir: 'public',
sourcemap: true,
},
plugins: [
svelte({
onwarn(warning, defaultHandler) {
if (warning.code === 'a11y-invalid-attribute') return;
defaultHandler(warning);
},
}),
],
publicDir: 'public_vite',
server: {
proxy: {
'/api': {
target: 'https://app.lndo.site',
changeOrigin: true,
secure: false,
},
},
},
});Reproduction
https://stackblitz.com/edit/vitejs-vite-anx6q5?file=main.js to reproduce use npm install && npm run build
System Info
I don't have npx. However, since the warning also appears in the reproduction link, this information should not be necessaryUsed Package Manager
yarn
Logs
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feat: cssp2-nice-to-haveNot breaking anything but nice to have (priority)Not breaking anything but nice to have (priority)
