Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
1651f67f
U
uni-app
项目概览
DCloud
/
uni-app
6 个月 前同步成功
通知
751
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看板
提交
1651f67f
编写于
11月 24, 2022
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore(devtools): remove tslib
上级
6260a17f
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
11 addition
and
34 deletion
+11
-34
packages/uni-vue-devtools/build.json
packages/uni-vue-devtools/build.json
+4
-1
packages/uni-vue-devtools/dist/uni.compiler.js
packages/uni-vue-devtools/dist/uni.compiler.js
+3
-28
packages/uni-vue-devtools/package.json
packages/uni-vue-devtools/package.json
+3
-3
pnpm-lock.yaml
pnpm-lock.yaml
+1
-2
未找到文件。
packages/uni-vue-devtools/build.json
浏览文件 @
1651f67f
...
...
@@ -8,7 +8,10 @@
},
"external"
:
[
"@dcloudio/uni-cli-shared"
]
],
"compilerOptions"
:
{
"target"
:
"es2018"
}
},
{
"input"
:
{
...
...
packages/uni-vue-devtools/dist/uni.compiler.js
浏览文件 @
1651f67f
...
...
@@ -9,31 +9,6 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
var
fs__default
=
/*#__PURE__*/
_interopDefaultLegacy
(
fs
);
var
path__default
=
/*#__PURE__*/
_interopDefaultLegacy
(
path
);
/******************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
function
__awaiter
(
thisArg
,
_arguments
,
P
,
generator
)
{
function
adopt
(
value
)
{
return
value
instanceof
P
?
value
:
new
P
(
function
(
resolve
)
{
resolve
(
value
);
});
}
return
new
(
P
||
(
P
=
Promise
))(
function
(
resolve
,
reject
)
{
function
fulfilled
(
value
)
{
try
{
step
(
generator
.
next
(
value
));
}
catch
(
e
)
{
reject
(
e
);
}
}
function
rejected
(
value
)
{
try
{
step
(
generator
[
"
throw
"
](
value
));
}
catch
(
e
)
{
reject
(
e
);
}
}
function
step
(
result
)
{
result
.
done
?
resolve
(
result
.
value
)
:
adopt
(
result
.
value
).
then
(
fulfilled
,
rejected
);
}
step
((
generator
=
generator
.
apply
(
thisArg
,
_arguments
||
[])).
next
());
});
}
// eslint-disable-next-line no-restricted-globals
const
{
initDevtoolsServer
}
=
require
(
'
../lib/front/server.js
'
);
const
uniVueDevtoolsPlugin
=
()
=>
{
...
...
@@ -41,11 +16,11 @@ const uniVueDevtoolsPlugin = () => {
return
{
name
:
'
uni:vue-devtools
'
,
config
()
{
return
new
Promise
(
(
resolve
)
=>
__awaiter
(
this
,
void
0
,
void
0
,
function
*
()
{
return
new
Promise
(
async
(
resolve
)
=>
{
let
__VUE_DEVTOOLS_HOST__
=
'
localhost
'
;
let
__VUE_DEVTOOLS_PORT__
=
8098
;
if
(
process
.
env
.
__VUE_PROD_DEVTOOLS__
)
{
const
{
socketHost
,
socketPort
}
=
yield
initDevtoolsServer
();
const
{
socketHost
,
socketPort
}
=
await
initDevtoolsServer
();
__VUE_DEVTOOLS_HOST__
=
socketHost
;
__VUE_DEVTOOLS_PORT__
=
socketPort
;
}
...
...
@@ -56,7 +31,7 @@ const uniVueDevtoolsPlugin = () => {
__VUE_DEVTOOLS_PORT__
:
JSON
.
stringify
(
`
${
__VUE_DEVTOOLS_PORT__
}
`
),
},
});
})
)
;
});
},
generateBundle
()
{
// 仅处理小程序
...
...
packages/uni-vue-devtools/package.json
浏览文件 @
1651f67f
...
...
@@ -4,7 +4,8 @@
"description"
:
"uni-vue-devtools"
,
"module"
:
"dist/runtime.es.js"
,
"files"
:
[
"dist"
"dist"
,
"lib"
],
"repository"
:
{
"type"
:
"git"
,
...
...
@@ -26,7 +27,6 @@
"express"
:
"^4.17.1"
,
"open"
:
"^8.4.0"
,
"picocolors"
:
"^1.0.0"
,
"socket.io"
:
"^4.4.0"
,
"tslib"
:
"^2.4.1"
"socket.io"
:
"^4.4.0"
}
}
pnpm-lock.yaml
浏览文件 @
1651f67f
...
...
@@ -841,7 +841,6 @@ importers:
open
:
^8.4.0
picocolors
:
^1.0.0
socket.io
:
^4.4.0
tslib
:
^2.4.1
dependencies
:
'
@dcloudio/uni-cli-shared'
:
link:../uni-cli-shared
detect-port
:
1.5.1
...
...
@@ -849,7 +848,6 @@ importers:
open
:
8.4.0
picocolors
:
1.0.0
socket.io
:
4.5.4
tslib
:
2.4.1
packages/uts
:
specifiers
:
...
...
@@ -7938,6 +7936,7 @@ packages:
/tslib/2.4.1
:
resolution
:
{
integrity
:
sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==
}
dev
:
true
/tsutils/3.21.0_typescript@4.9.3
:
resolution
:
{
integrity
:
sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录