Skip to content

Commit

Permalink
fix: 补充分包插件类型与定义
Browse files Browse the repository at this point in the history
  • Loading branch information
ModyQyW committed Aug 28, 2024
1 parent e7b3213 commit 4282277
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/core/src/config/types/subPackages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,19 @@ export interface SubPackage {
* 子包由哪些页面组成,参数同 pages
*/
pages: PageMetaDatum[]

/**
* 分包插件
*/
plugins?: {
[pluginName: string]: {
version: string

provider: string

[key: string]: any
}
}
}

export type SubPackages = SubPackage[]
19 changes: 19 additions & 0 deletions packages/schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2831,6 +2831,25 @@
},
"type": "array"
},
"plugins": {
"additionalProperties": {
"properties": {
"provider": {
"type": "string"
},
"version": {
"type": "string"
}
},
"required": [
"version",
"provider"
],
"type": "object"
},
"description": "分包插件",
"type": "object"
},
"root": {
"description": "子包的根目录",
"type": "string"
Expand Down

0 comments on commit 4282277

Please sign in to comment.