提交 698939d6 编写于 作者: fxy060608's avatar fxy060608

wip(uts): compiler

上级 0ae63815
...@@ -75,7 +75,7 @@ function resolveUtsFile(dir, extensions = ['.uts', '.ts', '.js']) { ...@@ -75,7 +75,7 @@ function resolveUtsFile(dir, extensions = ['.uts', '.ts', '.js']) {
} }
function resolveUTSCompiler() { function resolveUTSCompiler() {
let compilerPath = ''; let compilerPath = '';
if ((0, hbx_1.isInHBuilderX)()) { if ((0, hbx_1.runByHBuilderX)()) {
try { try {
compilerPath = require.resolve(path_1.default.resolve(process.env.UNI_HBUILDERX_PLUGINS, 'uniapp-uts-v1')); compilerPath = require.resolve(path_1.default.resolve(process.env.UNI_HBUILDERX_PLUGINS, 'uniapp-uts-v1'));
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册