4
使用 TypeScript 的 aliases 时如何保留 import 顺序?
source link: https://www.v2ex.com/t/966789
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
我想照着 Astro 文档里的方法用 aliases 替代相对路径
不过发现改用 @components
这种写法后
生成的页面里组件内嵌的 <style>
在最终页面出现的顺序变了,导致样式错乱
不知道有没有什么设置项可以让它行为跟用相对路径时一样?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK