Use case for paths aliases that don't start with special character #1069
thomasmattheussen
started this conversation in
Other
Replies: 1 comment 5 replies
-
Yes, exactly, vite-plugin-ssr (and not only) needs to be able to distinguish between alias names and npm package names. Can you rename your aliases to e.g. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm maintaining a multi-branded design system at the company I work at and we have some of our aliases set up like this:
Consumers of our design system write their imports like this
import x from '@mycompany/theme-whitelabel'
and based on their environment variables it gets aliased to the correct brand.But recently, vite-plugin-ssr enforces your
resolve
aliases to be distinguishable from regular package imports. Where's this coming from exactly? Is there a workaround somehow that doesn't require another alias setup?Beta Was this translation helpful? Give feedback.
All reactions