🌐 Nodejs.cn

2025年3月 - shadcn 2.5.0

在任何地方解析——注册表现在可以在应用中的任何位置放置文件。

我们在本周早些时候标记了 shadcn 2.5.0。它带来了一个非常酷的功能:随处解析

🌐 We tagged shadcn 2.5.0 earlier this week. It comes with a pretty cool feature: resolve anywhere.

现在注册表可以将文件放置在应用的任何位置,我们将正确解析导入。不需要坚持固定的文件结构。它甚至可以在注册表本身之外添加文件。

🌐 Registries can now place files anywhere in an app and we'll properly resolve imports. No need to stick to a fixed file structure. It can even add files outside the registry itself.

在安装时,我们追踪所有文件并执行多轮解析,以正确处理导入和别名。这很快。

🌐 On install, we track all files and perform a multi-pass resolution to correctly handle imports and aliases. It's fast.