提交 604bd9e4 编写于 作者: fxy060608's avatar fxy060608

wip(uts): compiler

上级 04a476f5
......@@ -4,6 +4,7 @@ import kotlinx.coroutines.CoroutineScope;
import kotlinx.coroutines.Deferred;
import kotlinx.coroutines.Dispatchers;
import io.dcloud.uts.Map;
import io.dcloud.uts.UTSAndroid;
import io.dcloud.uts.*;
fun test() {}
fun testByJs() {
......
......@@ -54,6 +54,12 @@ export async function compileApp(entry: string, options: CompileAppOptions) {
vue: 'io.dcloud.uts.vue',
},
uniModules: uni_modules,
globals: {
envs: {
// 自动化测试
UNI_AUTOMATOR_WS_ENDPOINT: process.env.UNI_AUTOMATOR_WS_ENDPOINT || '',
},
},
}
const bundleOptions: Parameters<typeof bundle>[1] = {
input,
......
......@@ -27,6 +27,9 @@ export type UTSInputOptions = UTSParseOptions & {
fileAppendContent?: string
paths: Record<string, string>
uniModules?: string[]
globals?: {
envs?: Record<string, string>
}
}
export type UTSOutputOptions = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册