Closed Xiphin closed 3 months ago
The recent changes primarily focus on enhancing the flexibility and configurability of path resolutions within the core package. Key updates include incorporating the VITE_ROOT_DIR
environment variable for determining root directories and adjusting path calculations accordingly. These changes ensure that the system can dynamically adapt to different root directory configurations, improving overall usability and consistency.
Files | Change Summaries |
---|---|
.../index.ts |
Updated paths to use VITE_ROOT_DIR environment variable instead of process.cwd() . |
.../options.ts |
Enhanced resolveOptions function to fallback to process.env.VITE_ROOT_DIR before process.cwd() . |
In the land of code, paths realigned,
WithVITE_ROOT_DIR
, new routes we find.
Flexibility in every line,
Our root now shifts, oh how divine!
🎉🐰✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
LGTM
如果没有进一步的反馈,我会在2-3天内合并发布。
Thx
Description 描述
兼容 HBuiderX 运行模式
Linked Issues 关联的 Issues
在 HBuiderX 使用,会在 /Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli-vite/ 下生成一个 pages.json 文件
Additional context 额外上下文
在 HBuilderX 下运行
Summary by CodeRabbit
New Features
VITE_ROOT_DIR
environment variable for better flexibility and configuration.Improvements