Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
genary
uni-app
提交
1707e91d
U
uni-app
项目概览
genary
/
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,发现更多精彩内容 >>
提交
1707e91d
编写于
8月 13, 2021
作者:
Q
qiang
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'next' of github.com:dcloudio/uni-app into next
上级
cd5177a0
95ed3300
变更
11
展开全部
隐藏空白更改
内联
并排
Showing
11 changed file
with
10638 addition
and
20919 deletion
+10638
-20919
packages/uni-app-plus/dist/style.css
packages/uni-app-plus/dist/style.css
+1
-1826
packages/uni-app-plus/dist/uni-app-view.umd.js
packages/uni-app-plus/dist/uni-app-view.umd.js
+1
-18717
packages/uni-app-plus/vite.config.ts
packages/uni-app-plus/vite.config.ts
+2
-2
packages/uni-app-vite/src/index.ts
packages/uni-app-vite/src/index.ts
+2
-2
packages/uni-app-vite/src/plugin/index.ts
packages/uni-app-vite/src/plugin/index.ts
+5
-5
packages/uni-app-vue/build.json
packages/uni-app-vue/build.json
+19
-2
packages/uni-app-vue/dist/service.runtime.esm.dev.js
packages/uni-app-vue/dist/service.runtime.esm.dev.js
+226
-362
packages/uni-app-vue/dist/service.runtime.esm.prod.js
packages/uni-app-vue/dist/service.runtime.esm.prod.js
+10373
-0
packages/uni-app-vue/package.json
packages/uni-app-vue/package.json
+2
-2
packages/uni-cli-nvue/src/webpack/plugin/WatchPlugin.ts
packages/uni-cli-nvue/src/webpack/plugin/WatchPlugin.ts
+3
-1
packages/vite-plugin-uni/src/cli/action.ts
packages/vite-plugin-uni/src/cli/action.ts
+4
-0
未找到文件。
packages/uni-app-plus/dist/style.css
浏览文件 @
1707e91d
此差异已折叠。
点击以展开。
packages/uni-app-plus/dist/uni-app-view.umd.js
浏览文件 @
1707e91d
此差异已折叠。
点击以展开。
packages/uni-app-plus/vite.config.ts
浏览文件 @
1707e91d
...
@@ -55,7 +55,7 @@ export default defineConfig({
...
@@ -55,7 +55,7 @@ export default defineConfig({
root
:
__dirname
,
root
:
__dirname
,
define
:
{
define
:
{
global
:
'
window
'
,
global
:
'
window
'
,
__DEV__
:
tru
e
,
__DEV__
:
fals
e
,
__TEST__
:
false
,
__TEST__
:
false
,
__PLATFORM__
:
JSON
.
stringify
(
'
app
'
),
__PLATFORM__
:
JSON
.
stringify
(
'
app
'
),
__NODE_JS__
:
false
,
__NODE_JS__
:
false
,
...
@@ -119,7 +119,7 @@ export default defineConfig({
...
@@ -119,7 +119,7 @@ export default defineConfig({
vueJsx
({
optimize
:
true
,
isCustomElement
}),
vueJsx
({
optimize
:
true
,
isCustomElement
}),
],
],
build
:
{
build
:
{
minify
:
fals
e
,
minify
:
tru
e
,
lib
:
{
lib
:
{
name
:
'
uni-app-view
'
,
name
:
'
uni-app-view
'
,
fileName
:
'
uni-app-view
'
,
fileName
:
'
uni-app-view
'
,
...
...
packages/uni-app-vite/src/index.ts
浏览文件 @
1707e91d
...
@@ -10,7 +10,7 @@ import { uniTemplatePlugin } from './plugins/template'
...
@@ -10,7 +10,7 @@ import { uniTemplatePlugin } from './plugins/template'
import
{
uniMainJsPlugin
}
from
'
./plugins/mainJs
'
import
{
uniMainJsPlugin
}
from
'
./plugins/mainJs
'
import
{
uniManifestJsonPlugin
}
from
'
./plugins/manifestJson
'
import
{
uniManifestJsonPlugin
}
from
'
./plugins/manifestJson
'
import
{
uniPagesJsonPlugin
}
from
'
./plugins/pagesJson
'
import
{
uniPagesJsonPlugin
}
from
'
./plugins/pagesJson
'
import
{
uniResolveIdPlugin
}
from
'
./plugins/resolveId
'
//
import { uniResolveIdPlugin } from './plugins/resolveId'
import
{
uniRenderjsPlugin
}
from
'
./plugins/renderjs
'
import
{
uniRenderjsPlugin
}
from
'
./plugins/renderjs
'
function
initUniCssScopedPluginOptions
()
{
function
initUniCssScopedPluginOptions
()
{
...
@@ -29,7 +29,7 @@ function initUniCssScopedPluginOptions() {
...
@@ -29,7 +29,7 @@ function initUniCssScopedPluginOptions() {
}
}
const
plugins
=
[
const
plugins
=
[
uniResolveIdPlugin
(),
//
uniResolveIdPlugin(),
uniMainJsPlugin
(),
uniMainJsPlugin
(),
uniManifestJsonPlugin
(),
uniManifestJsonPlugin
(),
uniPagesJsonPlugin
(),
uniPagesJsonPlugin
(),
...
...
packages/uni-app-vite/src/plugin/index.ts
浏览文件 @
1707e91d
...
@@ -20,9 +20,9 @@ export const UniAppPlugin: UniVitePlugin = {
...
@@ -20,9 +20,9 @@ export const UniAppPlugin: UniVitePlugin = {
}
}
},
},
configResolved
,
configResolved
,
resolveId
(
id
)
{
//
resolveId(id) {
if
(
id
===
'
vue
'
)
{
//
if (id === 'vue') {
return
resolveBuiltIn
(
'
@dcloudio/uni-app-vue
'
)
//
return resolveBuiltIn('@dcloudio/uni-app-vue')
}
//
}
},
//
},
}
}
packages/uni-app-vue/build.json
浏览文件 @
1707e91d
[
[
{
{
"input"
:
{
"input"
:
{
"src/service/index.ts"
:
[
"dist/service.runtime.esm.js"
]
"src/service/index.ts"
:
[
"dist/service.runtime.esm.
dev.
js"
]
},
},
"output"
:
{
"output"
:
{
"banner"
:
"export default function vueFactory (exports) {
\n
"
,
"banner"
:
"export default function vueFactory (exports) {
\n
"
,
...
@@ -9,7 +9,24 @@
...
@@ -9,7 +9,24 @@
},
},
"replacements"
:
{
"replacements"
:
{
"__VUE_OPTIONS_API__"
:
"true"
,
"__VUE_OPTIONS_API__"
:
"true"
,
"__VUE_PROD_DEVTOOLS__"
:
"false"
"__VUE_PROD_DEVTOOLS__"
:
"false"
,
"process.env.NODE_ENV"
:
"
\"
development
\"
"
},
"external"
:
false
,
"babel"
:
true
},
{
"input"
:
{
"src/service/index.ts"
:
[
"dist/service.runtime.esm.prod.js"
]
},
"output"
:
{
"banner"
:
"export default function vueFactory (exports) {
\n
"
,
"footer"
:
"}"
},
"replacements"
:
{
"__VUE_OPTIONS_API__"
:
"true"
,
"__VUE_PROD_DEVTOOLS__"
:
"false"
,
"process.env.NODE_ENV"
:
"
\"
production
\"
"
},
},
"external"
:
false
,
"external"
:
false
,
"babel"
:
true
"babel"
:
true
...
...
packages/uni-app-vue/dist/service.runtime.esm.js
→
packages/uni-app-vue/dist/service.runtime.esm.
dev.
js
浏览文件 @
1707e91d
此差异已折叠。
点击以展开。
packages/uni-app-vue/dist/service.runtime.esm.prod.js
0 → 100644
浏览文件 @
1707e91d
此差异已折叠。
点击以展开。
packages/uni-app-vue/package.json
浏览文件 @
1707e91d
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
"name"
:
"@dcloudio/uni-app-vue"
,
"name"
:
"@dcloudio/uni-app-vue"
,
"version"
:
"3.0.0-alpha-3000020210813001"
,
"version"
:
"3.0.0-alpha-3000020210813001"
,
"description"
:
"@dcloudio/uni-app-vue"
,
"description"
:
"@dcloudio/uni-app-vue"
,
"main"
:
"dist/service.runtime.esm.js"
,
"main"
:
"dist/service.runtime.esm.
dev.
js"
,
"module"
:
"dist/service.runtime.esm.js"
,
"module"
:
"dist/service.runtime.esm.
dev.
js"
,
"files"
:
[
"files"
:
[
"dist"
"dist"
],
],
...
...
packages/uni-cli-nvue/src/webpack/plugin/WatchPlugin.ts
浏览文件 @
1707e91d
...
@@ -16,7 +16,9 @@ export default class WatchPlugin {
...
@@ -16,7 +16,9 @@ export default class WatchPlugin {
compiler
.
hooks
.
invalid
.
tap
(
'
WatchPlugin
'
,
()
=>
{
compiler
.
hooks
.
invalid
.
tap
(
'
WatchPlugin
'
,
()
=>
{
if
(
!
isCompiling
)
{
if
(
!
isCompiling
)
{
isCompiling
=
true
isCompiling
=
true
console
.
log
(
M
[
'
dev.watching.start
'
])
if
(
!
isFirst
)
{
console
.
log
(
M
[
'
dev.watching.start
'
])
}
}
}
})
})
compiler
.
hooks
.
done
.
tap
(
'
WatchPlugin
'
,
(
stats
)
=>
{
compiler
.
hooks
.
done
.
tap
(
'
WatchPlugin
'
,
(
stats
)
=>
{
...
...
packages/vite-plugin-uni/src/cli/action.ts
浏览文件 @
1707e91d
...
@@ -15,8 +15,12 @@ export async function runDev(options: CliOptions & ServerOptions) {
...
@@ -15,8 +15,12 @@ export async function runDev(options: CliOptions & ServerOptions) {
await
(
options
.
ssr
?
createSSRServer
(
options
)
:
createServer
(
options
))
await
(
options
.
ssr
?
createSSRServer
(
options
)
:
createServer
(
options
))
}
else
{
}
else
{
const
watcher
=
(
await
build
(
options
))
as
RollupWatcher
const
watcher
=
(
await
build
(
options
))
as
RollupWatcher
let
isFirst
=
true
watcher
.
on
(
'
event
'
,
(
event
)
=>
{
watcher
.
on
(
'
event
'
,
(
event
)
=>
{
if
(
event
.
code
===
'
BUNDLE_START
'
)
{
if
(
event
.
code
===
'
BUNDLE_START
'
)
{
if
(
isFirst
)
{
return
(
isFirst
=
false
)
}
console
.
log
(
M
[
'
dev.watching.start
'
])
console
.
log
(
M
[
'
dev.watching.start
'
])
}
else
if
(
event
.
code
===
'
BUNDLE_END
'
)
{
}
else
if
(
event
.
code
===
'
BUNDLE_END
'
)
{
event
.
result
.
close
()
event
.
result
.
close
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录