vite-plugin-uni-pages icon indicating copy to clipboard operation
vite-plugin-uni-pages copied to clipboard

为 VIte 下的 uni-app 提供基于文件系统的路由

Results 45 vite-plugin-uni-pages issues
Sort by recently updated
recently updated
newest added

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [pnpm](https://pnpm.io) ([source](https://togithub.com/pnpm/pnpm)) | [`8.15.4` -> `9.0.6`](https://renovatebot.com/diffs/npm/pnpm/8.15.4/9.0.6) |...

### Description 描述 允许用户基于已存在的 schema 添加额外的类型声明 ### Linked Issues 关联的 Issues #116 ### Additional context 额外上下文 1. 对于 `lang="yaml"`,不知道为啥也能给出提示? 2. 对 volar 和智能提示这块不太懂,不确认是不是会有性能问题 参考项目:[volar-plugin-vue-router](https://github.com/kingyue737/volar-plugin-vue-router/blob/main/src/index.ts)

enhancement

### 对问题的清晰和简明的描述 使用的HX环境开发,ourDir不能传入绝对路径 他会到编译器所在的目录去找pages.json 提示文件找不到 ![image](https://github.com/uni-helper/vite-plugin-uni-pages/assets/51394686/9ba7e920-517e-49d9-bdcb-4b50253a9b60) ### 推荐的解决方案 是否可以传入绝对路径? ### 替代方案 _No response_ ### 额外上下文 _No response_ ### 检查 - [X] 遵循我们的 [行为准则](https://github.com/uni-helper/.github/blob/main/CODE_OF_CONDUCT.md) - [X] 检查是否已经有一个要求相同功能的问题,以避免重复创建。

good first issue

### 描述问题 这种应该怎么处理呢?更新了pages.json 会频繁导致git检测到有变动 ![image](https://github.com/uni-helper/vite-plugin-uni-pages/assets/19723639/b7a08c3a-85a1-4ab7-b1f1-ac26f6aeaf7f) ### 复现 ![image](https://github.com/uni-helper/vite-plugin-uni-pages/assets/19723639/91671ac5-4860-43d1-a589-d331413aca7d) ### 系统信息 ```Shell System: OS: macOS 13.4.1 CPU: (8) arm64 Apple M1 Pro Memory: 60.17 MB / 16.00 GB Shell: 5.9 -...

### 描述问题 ![image](https://github.com/uni-helper/vite-plugin-uni-pages/assets/55046983/be3d1b8f-f69a-4a0a-b592-995b9e4dc695) 如上图所示,微信小程序darkmode的适配需要在page.json中开启`darkmode`,但是我在 [`接口定义PagesConfig`](https://github.com/uni-helper/vite-plugin-uni-pages/blob/00ba3cc094794d0355b2eba06825961cbeb6664a/packages/core/src/config/types/index.ts#L104) 中没有找到相关定义; 但是发现此字段是允许 [`[x: string]: any` ](https://github.com/uni-helper/vite-plugin-uni-pages/blob/00ba3cc094794d0355b2eba06825961cbeb6664a/packages/core/src/config/types/index.ts#L178) 的,于是就自行添加了此配置,但是发现并没有出现在自动生成的 `page.json` 中。 --- ### 期望: 希望能支持自定义加入额外自定义配置项,或者将 `darkmode` 配置项加入到 [`接口定义PagesConfig`](https://github.com/uni-helper/vite-plugin-uni-pages/blob/00ba3cc094794d0355b2eba06825961cbeb6664a/packages/core/src/config/types/index.ts#L104) 中,且能够如愿出现在page.json中。 ### 复现 ``` ts // page.config.ts import {...

### 描述问题 我有一个新的需求,需要在 route 块中添加一个新的属性,来在钩子函数中进行处理,如何通过 volar 补充额外的类型声明 ```vue { "demo": true } ``` ### 复现 无 ### 系统信息 ```Shell System: OS: Windows 11 10.0.25997 CPU: (20) x64 12th Gen Intel(R)...

### Description 描述 兼容 HBuiderX 运行模式 ### Linked Issues 关联的 Issues 在 HBuiderX 使用,会在 /Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli-vite/ 下生成一个 pages.json 文件 ### Additional context 额外上下文 在 HBuilderX 下运行 ## Summary by CodeRabbit -...

### 描述问题 从0.2.25版本之后 报错 SyntaxError: Cannot use import statement outside a module ### 复现 mac node v18.19.0 vite-plugin-uni-pages 版本0.2.25之后的版本 ### 系统信息 基础环境信息: - os: `macOS 14.5` - node: `18.19.0` -...

This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [detect-indent](https://redirect.github.com/sindresorhus/detect-indent) | [`^6.1.0` -> `^7.0.0`](https://renovatebot.com/diffs/npm/detect-indent/6.1.0/7.0.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/detect-indent/7.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/detect-indent/7.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)...

size/S

This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [detect-newline](https://redirect.github.com/sindresorhus/detect-newline) | [`^3.1.0` -> `^4.0.0`](https://renovatebot.com/diffs/npm/detect-newline/3.1.0/4.0.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/detect-newline/4.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/detect-newline/4.0.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)...

size/S