Skip to content

Commit

Permalink
chore: release v0.2.10
Browse files Browse the repository at this point in the history
  • Loading branch information
KeJunMao committed Sep 21, 2023
1 parent 6ccca0b commit b9d446b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 16 deletions.
11 changes: 6 additions & 5 deletions packages/core/client.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
declare module "virtual:uni-pages" {
import { PageMetaDatum } from "./src/types";
import { SubPackage } from "./src/config/types/index";
export const pages: PageMetaDatum[];
export const subPackages: SubPackage[];
declare module 'virtual:uni-pages' {
import type { PageMetaDatum } from './src/types'
import type { SubPackage } from './src/config/types/index'

export const pages: PageMetaDatum[]
export const subPackages: SubPackage[]
}
4 changes: 2 additions & 2 deletions packages/core/src/config/types/globalStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export interface GlobalStyle {

/**
* 设置编译到 H5 平台的特定样式,配置项参考下方 H5
* @type H5
* @type {H5}
* @desc H5
*/
h5?: H5
Expand Down Expand Up @@ -176,7 +176,7 @@ export interface GlobalStyle {

/**
* 引用小程序组件,参考 小程序组件
* @type Record<string, string>
* @type {Record<string, string>}
* @desc
*/
usingComponents?: Record<string, string>
Expand Down
3 changes: 0 additions & 3 deletions packages/core/src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,14 @@ import type { Logger, ViteDevServer } from 'vite'
import { normalizePath } from 'vite'
import { loadConfig } from 'unconfig'
import { slash } from '@antfu/utils'
import { isH5 } from '@uni-helper/uni-env'
import dbg from 'debug'
import type { PagesConfig } from './config/types'
import type { PageMetaDatum, PagePath, ResolvedOptions, SubPageMetaDatum, UserOptions } from './types'
import { writeDeclaration } from './declaration'

import {
debug,
getPagesConfigSourcePaths,
invalidatePagesModule,
isConfigFile,
isTargetFile,
mergePageMetaDataArray,
useCachedPages,
Expand Down
4 changes: 0 additions & 4 deletions packages/core/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import process from 'node:process'
import Debug from 'debug'
import { type ModuleNode, type ViteDevServer, normalizePath } from 'vite'
import { groupBy } from 'lodash-unified'
import fg from 'fast-glob'
import type { SFCBlock } from '@vue/compiler-sfc'
import type { LoadConfigSource } from 'unconfig'
import { FILE_EXTENSIONS, RESOLVED_MODULE_ID_VIRTUAL } from './constant'
import type { PageMetaDatum } from './types'
import { getRouteSfcBlock } from './customBlock'
import type { PagesConfig } from './config'

export function invalidatePagesModule(server: ViteDevServer) {
const { moduleGraph } = server
Expand Down
4 changes: 2 additions & 2 deletions packages/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.json",
"exclude": ["**/dist/**"],
"include": ["**/*.ts", "**/*.d.ts", "**/*.vue", "**/*.tsx"]
"include": ["**/*.ts", "**/*.d.ts", "**/*.vue", "**/*.tsx"],
"exclude": ["**/dist/**"]
}

0 comments on commit b9d446b

Please sign in to comment.