@uni-helper/vite-plugin-uni-pages 0.3.2 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -15,10 +15,10 @@ pnpm i -D @uni-helper/vite-plugin-uni-pages
15
15
  ## Usage
16
16
 
17
17
  ```ts
18
- // vite.config.ts
19
- import { defineConfig } from 'vite'
20
18
  import Uni from '@dcloudio/vite-plugin-uni'
21
19
  import UniPages from '@uni-helper/vite-plugin-uni-pages'
20
+ // vite.config.ts
21
+ import { defineConfig } from 'vite'
22
22
 
23
23
  // It is recommended to put it in front of Uni
24
24
  export default defineConfig({
package/client.d.ts CHANGED
@@ -1,7 +1,11 @@
1
1
  declare module 'virtual:uni-pages' {
2
- import type { PageMetaDatum } from './src/types'
3
2
  import type { SubPackage } from './src/config/types/index'
3
+ import type { PageMetaDatum } from './src/types'
4
4
 
5
5
  export const pages: PageMetaDatum[]
6
6
  export const subPackages: SubPackage[]
7
7
  }
8
+
9
+ declare namespace globalThis {
10
+ export const definePage: import('.').DefinePage
11
+ }