提交 137023af 编写于 作者: fxy060608's avatar fxy060608

wip(x-ext-api): 增加 uni-canvas 模块

上级 4f5dcd12
......@@ -704,12 +704,21 @@ export function parseInjectModules(
return [...modules]
}
function readExtApiModulesJson() {
const json = require('../lib/ext-api/modules.json')
if (!json['uni-canvas']) {
json['uni-canvas'] = {}
}
json['uni-canvas']['components'] = ['canvas']
return json
}
export function parseExtApiModules() {
return normalizeExtApiModules(require('../lib/ext-api/modules.json'))
return normalizeExtApiModules(readExtApiModulesJson())
}
export function parseExtApiProviders() {
const modules = require('../lib/ext-api/modules.json')
const modules = readExtApiModulesJson()
const providers: {
[name: string]: {
service: string
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册