alias for `/@/` not work properly
See original GitHub issueDescribe the bug
Alias for /@/
not working properly. It works in v1.
Reproduction
https://github.com/foisonocean/vite2-alias-bug
System Info
- required
vite
version: 2.0.0-beta.5 - required Operating System: Linux
- required Node version: v15.5.0
- Optional:
- yarn version: 1.22.10
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
'alias' does not work correctly - Apple Community
I had an 'alias' to a folder on my desktop which no longer went to the aliased folder, but instead, opened a folder...
Read more >Outlook alias not resolving properly (i.e., - Microsoft Community
I have an Office 365 subscription that I am using a local copy of Outlook 2016 with. I login to my Microsoft account...
Read more >Variable in Bash Alias not working as intended [duplicate]
The alias doesn't work properly until running source ~/.bashrc or source ~/.bash_aliases ONLY AFTER running the alias once first.
Read more >Aliases in .bash_profile not working properly - Stack Overflow
I fixed this by editing my .bash_profile in vim or nano something about text edited messed it up unsure why. I tried to...
Read more >why alias names defined in .bashrc file are not working?
This may happen because your PATH has not been set correctly to use all alias referenced binaries' absoulte path.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
这个 issue 跟其他的 alias 问题没有任何关系,只是 alias 不作用于 HTML 里的 url 而已。
2.0 的 alias 是直接替换,所以如果你用了
/@/
这样的 alias 那么值也需要有/
结尾。https://vitejs.dev/guide/migration.html#alias-behavior-change/@/
still not work in vite@2.0.0-beta.9, it seems like a upstream bug from@rollup/plugin-alias
(https://github.com/rollup/plugins/issues/759).