Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MuGuiLin
uni-app
提交
ed95b31c
U
uni-app
项目概览
MuGuiLin
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ed95b31c
编写于
2月 07, 2022
作者:
fxy060608
浏览文件
操作
浏览文件
下载
差异文件
chore: update checkVersion.js
上级
a30eb632
c7693164
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
20 addition
and
8 deletion
+20
-8
packages/uni-app-vite/src/nvue/plugin/index.ts
packages/uni-app-vite/src/nvue/plugin/index.ts
+3
-0
packages/uni-app-vite/src/nvue/plugins/esbuild.ts
packages/uni-app-vite/src/nvue/plugins/esbuild.ts
+2
-1
packages/uni-app-vite/src/nvue/utils.ts
packages/uni-app-vite/src/nvue/utils.ts
+9
-0
packages/uni-app-vite/src/plugin/build.ts
packages/uni-app-vite/src/plugin/build.ts
+0
-4
packages/uni-app-vite/src/vue/plugin/index.ts
packages/uni-app-vite/src/vue/plugin/index.ts
+4
-0
packages/uni-components/src/vue/movable-view/index.tsx
packages/uni-components/src/vue/movable-view/index.tsx
+0
-1
scripts/checkVersion.js
scripts/checkVersion.js
+2
-2
未找到文件。
packages/uni-app-vite/src/nvue/plugin/index.ts
浏览文件 @
ed95b31c
...
...
@@ -22,6 +22,7 @@ import { transformVideo } from './transforms/transformVideo'
import
{
transformText
}
from
'
./transforms/transformText
'
import
{
createConfigResolved
}
from
'
../../plugin/configResolved
'
import
{
defaultNVueRpx2Unit
}
from
'
@dcloudio/uni-shared
'
import
{
external
,
globals
}
from
'
../utils
'
const
uTags
=
{
text
:
'
u-text
'
,
...
...
@@ -68,6 +69,7 @@ export function uniAppNVuePlugin(): Plugin {
build
:
{
outDir
:
nvueOutDir
(),
rollupOptions
:
{
external
,
input
:
{
main
:
mainPath
,
},
...
...
@@ -82,6 +84,7 @@ export function uniAppNVuePlugin(): Plugin {
assetFileNames
:
'
[name][extname]
'
,
chunkFileNames
:
createChunkFileNames
(
inputDir
),
plugins
:
[
dynamicImportPolyfill
()],
globals
,
},
},
},
...
...
packages/uni-app-vite/src/nvue/plugins/esbuild.ts
浏览文件 @
ed95b31c
...
...
@@ -8,6 +8,7 @@ import debug from 'debug'
import
{
transformWithEsbuild
}
from
'
@dcloudio/uni-cli-shared
'
import
{
nvueOutDir
}
from
'
../../utils
'
import
{
esbuildGlobals
}
from
'
../utils
'
const
debugEsbuild
=
debug
(
'
uni:app-nvue-esbuild
'
)
...
...
@@ -26,7 +27,7 @@ export function uniEsbuildPlugin(): Plugin {
},
bundle
:
true
,
write
:
false
,
plugins
:
[
esbuildGlobalPlugin
(
{
vue
:
'
Vue
'
}
)],
plugins
:
[
esbuildGlobalPlugin
(
esbuildGlobals
)],
}
},
async
writeBundle
(
_
,
bundle
)
{
...
...
packages/uni-app-vite/src/nvue/utils.ts
0 → 100644
浏览文件 @
ed95b31c
export
const
external
=
[
'
vue
'
,
'
vuex
'
]
export
const
globals
=
{
vue
:
'
Vue
'
,
vuex
:
'
Vuex
'
,
}
export
const
esbuildGlobals
=
{
vue
:
'
Vue
'
,
vuex
:
'
Vue.Vuex
'
,
}
packages/uni-app-vite/src/plugin/build.ts
浏览文件 @
ed95b31c
...
...
@@ -33,7 +33,6 @@ export function buildOptions(
emptyOutDir
:
false
,
// 不清空输出目录,否则会影响 webpack 的输出
assetsInlineLimit
:
0
,
rollupOptions
:
{
external
:
[
'
vue
'
],
input
:
resolveMainPathOnce
(
inputDir
),
output
:
{
sourcemapPathTransform
(
relativeSourcePath
,
sourcemapPath
)
{
...
...
@@ -59,9 +58,6 @@ export function buildOptions(
return
'
[name].js
'
},
assetFileNames
:
'
[name][extname]
'
,
globals
:
{
vue
:
'
Vue
'
,
},
},
},
}
...
...
packages/uni-app-vite/src/vue/plugin/index.ts
浏览文件 @
ed95b31c
...
...
@@ -39,6 +39,7 @@ export function uniAppVuePlugin(): UniVitePlugin {
},
build
:
{
rollupOptions
:
{
external
:
[
'
vue
'
],
output
:
{
name
:
'
AppService
'
,
format
:
process
.
env
.
UNI_APP_CODE_SPLITING
?
'
amd
'
:
'
iife
'
,
...
...
@@ -46,6 +47,9 @@ export function uniAppVuePlugin(): UniVitePlugin {
autoId
:
true
,
},
entryFileNames
:
APP_SERVICE_FILENAME
,
globals
:
{
vue
:
'
Vue
'
,
},
},
},
},
...
...
packages/uni-components/src/vue/movable-view/index.tsx
浏览文件 @
ed95b31c
...
...
@@ -388,7 +388,6 @@ function useMovableViewState(
}
}
function
__handleTouchMove
(
event
:
TouchtrackEvent
)
{
event
.
stopPropagation
()
if
(
!
_isScaling
&&
!
props
.
disabled
&&
_isTouching
)
{
let
x
=
_translateX
let
y
=
_translateY
...
...
scripts/checkVersion.js
浏览文件 @
ed95b31c
...
...
@@ -13,10 +13,10 @@ const pkgs = {
latest
:
'
3.2.30
'
,
},
'
vue-router
'
:
{
nex
t
:
'
4.0.12
'
,
lates
t
:
'
4.0.12
'
,
},
vuex
:
{
nex
t
:
'
4.0.2
'
,
lates
t
:
'
4.0.2
'
,
},
'
vue-i18n
'
:
{
next
:
'
9.1.9
'
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录