Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
3719024c
U
uni-app
项目概览
DCloud
/
uni-app
6 个月 前同步成功
通知
750
Star
38709
Fork
3642
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
8
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
8
Issue
8
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
3719024c
编写于
6月 24, 2024
作者:
雪洛
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(harmony): 调整ets runtime引用路径
上级
b2b6d677
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
12 addition
and
16 deletion
+12
-16
packages/uni-app-harmony/build.ets.json
packages/uni-app-harmony/build.ets.json
+5
-5
packages/uni-uts-v1/src/arkts.ts
packages/uni-uts-v1/src/arkts.ts
+7
-11
未找到文件。
packages/uni-app-harmony/build.ets.json
浏览文件 @
3719024c
...
...
@@ -12,9 +12,9 @@
"@dcloudio/uni-i18n"
:
"<rootDir>/packages/uni-i18n/src"
,
"@dcloudio/uni-platform"
:
"<rootDir>/packages/uni-app-harmony/src/platform"
,
"@dcloudio/uni-shared"
:
"<rootDir>/packages/uni-shared/src"
,
"@dcloudio/uni-runtime"
:
"
../../../resources/rawfile/uni-app/uni-app-harmony-framework-dev
"
"@dcloudio/uni-runtime"
:
"
@dcloudio/uni-app-harmony-framework
"
},
"externals"
:
[
"
../../../resources/rawfile/uni-app/uni-app-harmony-framework-dev
"
],
"externals"
:
[
"
@dcloudio/uni-app-harmony-framework
"
],
"replacements"
:
{
"__PLATFORM__"
:
"'app-harmony'"
,
"__DEV__"
:
"false"
,
...
...
@@ -22,7 +22,7 @@
"__APP_VIEW__"
:
"false"
,
"__NODE_JS__"
:
"false"
},
"banner"
:
"import { IU
niError, UTSObject, UniError, UTSJSONObject, string, ComponentPublicInstance, ComponentInternalInstance, defineAsyncApi, defineSyncApi, defineTaskApi, defineOnApi, defineOffApi, getUniProvider, getUniProviders, AsyncApiSuccessResult, AsyncApiResult, ApiExecutor, ProtocolOptions, ApiOptions, ApiError, UniProvider } from '@dcloudio/uni-app-ohos-runtime'
"
,
"banner"
:
"import { IU
TSObject, UTSObject, UTSJSONObject } from '@dcloudio/uts-harmony'
\n
import { IUniError, UniError, string, ComponentPublicInstance, ComponentInternalInstance, defineAsyncApi, defineSyncApi, defineTaskApi, defineOnApi, defineOffApi, getUniProvider, getUniProviders, AsyncApiSuccessResult, AsyncApiResult, ApiExecutor, ProtocolOptions, ApiOptions, ApiError, UniProvider } from '@dcloudio/uni-app-harmony'
\n
"
,
"wrapper"
:
{
"name"
:
"initUniExtApi"
,
"args"
:
[[
"APP_ID"
,
"string"
]]
...
...
@@ -32,9 +32,9 @@
"../uni-runtime/src/helpers/api/index.ts"
:
"uni-api-shared.ets"
},
"alias"
:
{
"@dcloudio/uni-runtime"
:
"
../../../resources/rawfile/uni-app/uni-app-harmony-framework-dev
"
"@dcloudio/uni-runtime"
:
"
@dcloudio/uni-app-harmony-framework
"
},
"externals"
:
[
"
../../../resources/rawfile/uni-app/uni-app-harmony-framework-dev
"
],
"externals"
:
[
"
@dcloudio/uni-app-harmony-framework
"
],
"replacements"
:
{
"__PLATFORM__"
:
"'app-harmony'"
,
"__DEV__"
:
"false"
,
...
...
packages/uni-uts-v1/src/arkts.ts
浏览文件 @
3719024c
...
...
@@ -29,18 +29,17 @@ export async function compileArkTS(
projectPath
,
pluginId
)
const
globals
=
[
const
utsGlobals
=
[
'
IUTSObject
'
,
'
UTSObject
'
,
'
UTSJSONObject
'
]
const
uniAppGlobals
=
[
'
IUniError
'
,
'
IUTSObject
'
,
'
UniError
'
,
'
UTSObject
'
,
'
UTSJSONObject
'
,
'
string
'
,
'
ComponentPublicInstance
'
,
'
ComponentInternalInstance
'
,
]
const
banners
:
string
[]
=
[
`import {
${
globals
.
join
(
'
,
'
)}
} from '@dcloudio/uni-app-ohos-runtime'`
,
`import {
${
utsGlobals
.
join
(
'
,
'
)}
} from '@dcloudio/uts-harmony'`
,
`import {
${
uniAppGlobals
.
join
(
'
,
'
)}
} from '@dcloudio/uni-app-harmony'`
,
]
if
(
isExtApi
)
{
const
globals
=
[
...
...
@@ -60,7 +59,7 @@ export async function compileArkTS(
'
UniProvider
'
,
]
banners
.
push
(
`import {
${
globals
.
join
(
'
,
'
)}
} from '@dcloudio/uni-app-
ohos-runtime
'`
`import {
${
globals
.
join
(
'
,
'
)}
} from '@dcloudio/uni-app-
harmony
'`
)
}
const
buildOptions
:
UTSBundleOptions
=
{
...
...
@@ -69,12 +68,9 @@ export async function compileArkTS(
root
:
inputDir
,
filename
,
paths
:
{
'
@dcloudio/uni-runtime
'
:
'
../../../../../resources/rawfile/uni-app/uni-app-harmony-framework-dev
'
,
'
@dcloudio/uni-runtime
'
:
'
@dcloudio/uni-app-harmony-framework
'
,
},
externals
:
[
'
../../../../../resources/rawfile/uni-app/uni-app-harmony-framework-dev
'
,
],
externals
:
[
'
@dcloudio/uni-app-harmony-framework
'
],
parseOptions
:
{
tsx
:
true
,
noEarlyErrors
:
true
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录