Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(vite): suppress warning about unresolved public assets #27328

Merged
merged 5 commits into from
May 23, 2024

Conversation

danielroe
Copy link
Member

@danielroe danielroe commented May 23, 2024

🔗 Linked issue

resolves #26379
closes #26551

📚 Description

We now take full control of rendering public assets (#26163). But it is not possible to configure whether vite warns about public assets without providing a custom external function to rollup, which would mean taking complete control of externals, which we wouldn't want.

https://github.com/vitejs/vite/blob/v5.2.11/packages/vite/src/node/plugins/css.ts#L350-L355

So this obscures the (harmless) warning when it matches a public asset. It will still warn if a nonexistent public asset or other pattern is passed.

Copy link

stackblitz bot commented May 23, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant