Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
ac3a53cf
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看板
提交
ac3a53cf
编写于
2月 15, 2022
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
wip(app): nvue
上级
dcf76bc7
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
72 addition
and
71 deletion
+72
-71
packages/uni-app-vite/src/nvue/index.ts
packages/uni-app-vite/src/nvue/index.ts
+2
-0
packages/uni-app-vite/src/nvue/plugin/index.ts
packages/uni-app-vite/src/nvue/plugin/index.ts
+7
-5
packages/uni-app-vite/src/nvue/plugins/esbuild.ts
packages/uni-app-vite/src/nvue/plugins/esbuild.ts
+2
-27
packages/uni-app-vite/src/nvue/plugins/mainJs.ts
packages/uni-app-vite/src/nvue/plugins/mainJs.ts
+19
-13
packages/uni-app-vite/src/nvue/plugins/pagesJson.ts
packages/uni-app-vite/src/nvue/plugins/pagesJson.ts
+4
-6
packages/uni-app-vite/src/plugin/build.ts
packages/uni-app-vite/src/plugin/build.ts
+1
-1
packages/uni-app-vite/src/plugins/manifestJson.ts
packages/uni-app-vite/src/plugins/manifestJson.ts
+2
-1
packages/uni-app-vite/src/plugins/template.ts
packages/uni-app-vite/src/plugins/template.ts
+22
-8
packages/uni-app-vite/src/utils.ts
packages/uni-app-vite/src/utils.ts
+2
-5
packages/uni-app-vite/src/vue/plugins/pagesJson.ts
packages/uni-app-vite/src/vue/plugins/pagesJson.ts
+2
-1
packages/uni-app-vue/dist/nvue.runtime.esm.dev.js
packages/uni-app-vue/dist/nvue.runtime.esm.dev.js
+2
-1
packages/uni-app-vue/dist/nvue.runtime.esm.prod.js
packages/uni-app-vue/dist/nvue.runtime.esm.prod.js
+2
-1
packages/uni-app-vue/lib/nvue.runtime.esm.js
packages/uni-app-vue/lib/nvue.runtime.esm.js
+3
-2
packages/uni-cli-shared/src/constants.ts
packages/uni-cli-shared/src/constants.ts
+2
-0
未找到文件。
packages/uni-app-vite/src/nvue/index.ts
浏览文件 @
ac3a53cf
...
...
@@ -8,6 +8,7 @@ import {
import
{
uniEasycomPlugin
}
from
'
../plugins/easycom
'
import
{
uniManifestJsonPlugin
}
from
'
../plugins/manifestJson
'
import
{
uniStatsPlugin
}
from
'
../plugins/stats
'
import
{
uniTemplatePlugin
}
from
'
../plugins/template
'
import
{
uniAppNVuePlugin
}
from
'
./plugin
'
import
{
uniAppCssPlugin
}
from
'
./plugins/appCss
'
import
{
uniEsbuildPlugin
}
from
'
./plugins/esbuild
'
...
...
@@ -30,5 +31,6 @@ export function initNVuePlugins() {
uniStatsPlugin
(),
uniAppNVuePlugin
({
appService
}),
uniEsbuildPlugin
({
renderer
,
appService
}),
...(
appService
?
[
uniTemplatePlugin
({
renderer
})]
:
[]),
]
}
packages/uni-app-vite/src/nvue/plugin/index.ts
浏览文件 @
ac3a53cf
...
...
@@ -3,6 +3,7 @@ import type { Plugin } from 'vite'
import
path
from
'
path
'
import
colors
from
'
picocolors
'
import
{
APP_SERVICE_FILENAME
,
commonjsProxyRE
,
createTransformTag
,
cssLangRE
,
...
...
@@ -66,18 +67,19 @@ export function uniAppNVuePlugin({
},
build
:
{
lib
:
{
name
:
'
AppService
'
,
// 必须使用 lib 模式,否则会生成 preload 等代码
fileName
:
'
app
'
,
fileName
:
appService
?
'
app-service
'
:
'
app
'
,
entry
:
mainPath
,
formats
:
[
'
es
'
],
formats
:
[
appService
?
'
iife
'
:
'
es
'
],
},
outDir
:
nvueOutDir
(
appService
),
outDir
:
appService
?
process
.
env
.
UNI_OUTPUT_DIR
:
nvueOutDir
(
),
rollupOptions
:
{
external
:
external
(
appService
),
output
:
{
entryFileNames
(
chunk
)
{
if
(
chunk
.
name
===
'
main
'
)
{
return
'
app.js
'
if
(
chunk
.
name
===
'
main
'
&&
chunk
.
isEntry
)
{
return
appService
?
APP_SERVICE_FILENAME
:
'
app.js
'
}
return
chunk
.
name
+
'
.js
'
},
...
...
packages/uni-app-vite/src/nvue/plugins/esbuild.ts
浏览文件 @
ac3a53cf
...
...
@@ -5,10 +5,7 @@ import path from 'path'
import
fs
from
'
fs-extra
'
import
debug
from
'
debug
'
import
{
APP_SERVICE_FILENAME
,
transformWithEsbuild
,
}
from
'
@dcloudio/uni-cli-shared
'
import
{
transformWithEsbuild
}
from
'
@dcloudio/uni-cli-shared
'
import
{
nvueOutDir
}
from
'
../../utils
'
import
{
esbuildGlobals
}
from
'
../utils
'
...
...
@@ -52,15 +49,6 @@ export function uniEsbuildPlugin({
entryPoints
.
push
(
name
)
}
})
if
(
appService
)
{
debugEsbuild
(
'
start
'
,
APP_SERVICE_FILENAME
)
await
buildNVueAppService
(
buildOptions
).
then
((
code
)
=>
{
return
fs
.
outputFile
(
path
.
resolve
(
outputDir
,
APP_SERVICE_FILENAME
),
code
)
})
}
debugEsbuild
(
'
start
'
,
entryPoints
.
length
,
entryPoints
)
for
(
const
filename
of
entryPoints
)
{
await
buildNVuePage
(
renderer
,
filename
,
buildOptions
).
then
((
code
)
=>
{
...
...
@@ -72,19 +60,6 @@ export function uniEsbuildPlugin({
}
}
function
buildNVueAppService
(
options
:
BuildOptions
)
{
return
transformWithEsbuild
(
`import './app.js'`
,
path
.
join
(
nvueOutDir
(
true
),
'
main.js
'
),
options
).
then
((
res
)
=>
{
if
(
res
.
outputFiles
)
{
return
res
.
outputFiles
[
0
].
text
}
return
''
})
}
function
buildNVuePage
(
renderer
:
'
native
'
|
undefined
,
filename
:
string
,
...
...
@@ -106,7 +81,7 @@ App.mpType = 'page'
const app = Vue.createApp(App,{$store:getApp().$store,__pageId,__pagePath,__pageQuery})
app.provide('__globalStyles', Vue.useCssStyles([...AppStyles, ...(App.styles||[])]))
app.mount('#root')`
,
path
.
join
(
nvueOutDir
(
false
),
'
main.js
'
),
path
.
join
(
nvueOutDir
(),
'
main.js
'
),
options
).
then
((
res
)
=>
{
if
(
res
.
outputFiles
)
{
...
...
packages/uni-app-vite/src/nvue/plugins/mainJs.ts
浏览文件 @
ac3a53cf
import
{
defineUniMainJsPlugin
,
PAGES_JSON_JS
}
from
'
@dcloudio/uni-cli-shared
'
import
{
defineUniMainJsPlugin
,
MANIFEST_JSON_JS
,
PAGES_JSON_JS
,
}
from
'
@dcloudio/uni-cli-shared
'
import
{
APP_CSS_JS
}
from
'
./appCss
'
export
function
uniMainJsPlugin
({
...
...
@@ -14,23 +18,25 @@ export function uniMainJsPlugin({
enforce
:
'
pre
'
,
transform
(
code
,
id
)
{
if
(
opts
.
filter
(
id
))
{
if
(
renderer
)
{
if
(
appService
)
{
code
=
code
.
includes
(
'
createSSRApp
'
)
?
createApp
(
code
)
:
createLegacyApp
(
code
)
return
{
code
,
map
:
{
mappings
:
''
},
}
if
(
renderer
!==
'
native
'
)
{
return
{
code
:
`import './
${
PAGES_JSON_JS
}
';import('
${
APP_CSS_JS
}
').then(()=>{})`
,
map
:
{
mappings
:
''
},
}
}
if
(
appService
)
{
code
=
code
.
includes
(
'
createSSRApp
'
)
?
createApp
(
code
)
:
createLegacyApp
(
code
)
return
{
code
:
`import './
${
PAGES_JSON_JS
}
';`
,
code
:
`import './
${
MANIFEST_JSON_JS
}
';\nimport './
${
PAGES_JSON_JS
}
';\n`
+
code
,
map
:
{
mappings
:
''
},
}
}
return
{
code
:
`import './
${
PAGES_JSON_JS
}
';
import('
${
APP_CSS_JS
}
').then(()=>{})
`
,
code
:
`import './
${
PAGES_JSON_JS
}
';`
,
map
:
{
mappings
:
''
},
}
}
...
...
@@ -43,7 +49,7 @@ function createApp(code: string) {
return
`
${
code
.
replace
(
'
createSSRApp
'
,
'
createVueApp as createSSRApp
'
)}
;const {app:__app__,Vuex:__Vuex__,Pinia:__Pinia__}=createApp();uni.Vuex=__Vuex__;uni.Pinia=__Pinia__;__app__._component.mpType='app';__app__._component.render=()=>{};__app__.mount(
"#app"
);`
)}
;const {app:__app__,Vuex:__Vuex__,Pinia:__Pinia__}=createApp();uni.Vuex=__Vuex__;uni.Pinia=__Pinia__;__app__._component.mpType='app';__app__._component.render=()=>{};__app__.mount(
{appendChild(){}}
);`
}
function
createLegacyApp
(
code
:
string
)
{
...
...
packages/uni-app-vite/src/nvue/plugins/pagesJson.ts
浏览文件 @
ac3a53cf
...
...
@@ -8,7 +8,7 @@ import {
parseManifestJsonOnce
,
getLocaleFiles
,
normalizeAppNVuePagesJson
,
MANIFEST_JSON_JS
,
APP_CONFIG_SERVICE
,
}
from
'
@dcloudio/uni-cli-shared
'
export
function
uniPagesJsonPlugin
({
...
...
@@ -40,9 +40,9 @@ export function uniPagesJsonPlugin({
)
}
})
if
(
renderer
===
'
native
'
&&
!
appService
)
{
if
(
renderer
===
'
native
'
&&
appService
)
{
this
.
emitFile
({
fileName
:
`app-config-service.js`
,
fileName
:
APP_CONFIG_SERVICE
,
type
:
'
asset
'
,
source
:
normalizeAppConfigService
(
pagesJson
,
...
...
@@ -50,9 +50,7 @@ export function uniPagesJsonPlugin({
),
})
return
{
code
:
`import './
${
MANIFEST_JSON_JS
}
'\n`
+
normalizeAppNVuePagesJson
(
pagesJson
),
code
:
''
,
map
:
{
mappings
:
''
},
}
}
...
...
packages/uni-app-vite/src/plugin/build.ts
浏览文件 @
ac3a53cf
...
...
@@ -22,7 +22,7 @@ export function buildOptions(
const
outputDir
=
process
.
env
.
UNI_OUTPUT_DIR
// 开始编译时,清空输出目录
function
emptyNVueDir
()
{
const
nvueOutputDir
=
nvueOutDir
(
false
)
const
nvueOutputDir
=
nvueOutDir
()
if
(
fs
.
existsSync
(
nvueOutputDir
))
{
emptyDir
(
nvueOutputDir
)
}
...
...
packages/uni-app-vite/src/plugins/manifestJson.ts
浏览文件 @
ac3a53cf
...
...
@@ -2,6 +2,7 @@ import path from 'path'
import
{
Plugin
}
from
'
vite
'
import
{
APP_CONFIG
,
defineUniManifestJsonPlugin
,
getLocaleFiles
,
normalizeAppManifestJson
,
...
...
@@ -30,7 +31,7 @@ export function uniManifestJsonPlugin(): Plugin {
// 生成一个空的 app-config.js,兼容基座已有规范
this
.
emitFile
({
fileName
:
`app-config.js`
,
fileName
:
APP_CONFIG
,
type
:
'
asset
'
,
source
:
'
(function(){})();
'
,
})
...
...
packages/uni-app-vite/src/plugins/template.ts
浏览文件 @
ac3a53cf
...
...
@@ -3,23 +3,37 @@ import fs from 'fs-extra'
import
{
Plugin
}
from
'
vite
'
import
{
templateDir
}
from
'
../utils
'
export
function
uniTemplatePlugin
():
Plugin
{
export
function
uniTemplatePlugin
({
renderer
,
}:
{
renderer
?:
'
native
'
}
=
{}):
Plugin
{
let
outputDir
:
string
return
{
name
:
'
uni:app-template
'
,
enforce
:
'
post
'
,
configResolved
()
{
outputDir
=
process
.
env
.
UNI_OUTPUT_DIR
fs
.
copySync
(
require
.
resolve
(
'
@dcloudio/uni-app-plus/dist/uni-app-view.umd.js
'
),
path
.
resolve
(
outputDir
,
'
uni-app-view.umd.js
'
),
{
overwrite
:
true
,
}
)
if
(
renderer
!==
'
native
'
)
{
fs
.
copySync
(
require
.
resolve
(
'
@dcloudio/uni-app-plus/dist/uni-app-view.umd.js
'
),
path
.
resolve
(
outputDir
,
'
uni-app-view.umd.js
'
),
{
overwrite
:
true
,
}
)
}
fs
.
copySync
(
templateDir
,
outputDir
,
{
overwrite
:
true
,
filter
(
src
)
{
if
(
renderer
===
'
native
'
)
{
if
(
src
.
includes
(
'
__uniappquill
'
)
||
src
.
includes
(
'
__uniappautomator
'
)
)
{
return
false
}
}
return
!
src
.
includes
(
'
__uniappview.html
'
)
},
})
...
...
packages/uni-app-vite/src/utils.ts
浏览文件 @
ac3a53cf
import
path
from
'
path
'
export
const
templateDir
=
path
.
resolve
(
__dirname
,
'
../lib/template/
'
)
export
function
nvueOutDir
(
appService
:
boolean
)
{
return
path
.
join
(
process
.
env
.
UNI_OUTPUT_DIR
,
'
../.nvue
'
+
(
appService
?
'
/.app-service
'
:
''
)
)
export
function
nvueOutDir
()
{
return
path
.
join
(
process
.
env
.
UNI_OUTPUT_DIR
,
'
../.nvue
'
)
}
packages/uni-app-vite/src/vue/plugins/pagesJson.ts
浏览文件 @
ac3a53cf
...
...
@@ -9,6 +9,7 @@ import {
parseManifestJsonOnce
,
getLocaleFiles
,
MANIFEST_JSON_JS
,
APP_CONFIG_SERVICE
,
}
from
'
@dcloudio/uni-cli-shared
'
export
function
uniPagesJsonPlugin
():
Plugin
{
...
...
@@ -35,7 +36,7 @@ export function uniPagesJsonPlugin(): Plugin {
}
})
this
.
emitFile
({
fileName
:
`app-config-service.js`
,
fileName
:
APP_CONFIG_SERVICE
,
type
:
'
asset
'
,
source
:
normalizeAppConfigService
(
pagesJson
,
...
...
packages/uni-app-vue/dist/nvue.runtime.esm.dev.js
浏览文件 @
ac3a53cf
...
...
@@ -9722,4 +9722,5 @@ var createApp = function () {
return
app
;
};
export
{
BaseTransition
,
Comment
,
Fragment
,
KeepAlive
,
Static
,
Suspense
,
Teleport
,
Text
,
callWithAsyncErrorHandling
,
callWithErrorHandling
,
cloneVNode
,
compatUtils
,
computed
,
createApp
,
createBlock
,
createCommentVNode
,
createElementBlock
,
createBaseVNode
as
createElementVNode
,
createHydrationRenderer
,
createPropsRestProxy
,
createRenderer
,
createSlots
,
createStaticVNode
,
createTextVNode
,
createVNode
,
defineAsyncComponent
,
defineComponent
,
defineEmits
,
defineExpose
,
defineProps
,
devtools
,
getCurrentInstance
,
getTransitionRawChildren
,
guardReactiveProps
,
h
,
handleError
,
initCustomFormatter
,
inject
,
injectHook
,
isInSSRComponentSetup
,
isMemoSame
,
isRuntimeOnly
,
isVNode
,
mergeDefaults
,
mergeProps
,
nextTick
,
onActivated
,
onBeforeMount
,
onBeforeUnmount
,
onBeforeUpdate
,
onDeactivated
,
onErrorCaptured
,
onMounted
,
onRenderTracked
,
onRenderTriggered
,
onServerPrefetch
,
onUnmounted
,
onUpdated
,
openBlock
,
popScopeId
,
provide
,
pushScopeId
,
queuePostFlushCb
,
registerRuntimeCompiler
,
render
,
renderList
,
renderSlot
,
resolveComponent
,
resolveDirective
,
resolveDynamicComponent
,
resolveFilter
,
resolveTransitionHooks
,
setBlockTracking
,
setDevtoolsHook
,
setTransitionHooks
,
ssrContextKey
,
toHandlers
,
transformVNodeArgs
,
useAttrs
,
useCssModule
,
useCssStyles
,
useCssVars
,
useSSRContext
,
useSlots
,
useTransitionState
,
version
,
warn
,
watch
,
watchEffect
,
watchPostEffect
,
watchSyncEffect
,
withAsyncContext
,
withCtx
,
withDefaults
,
withDirectives
,
withMemo
,
withScopeId
};
var
createVueApp
=
createApp
;
export
{
BaseTransition
,
Comment
,
Fragment
,
KeepAlive
,
Static
,
Suspense
,
Teleport
,
Text
,
callWithAsyncErrorHandling
,
callWithErrorHandling
,
cloneVNode
,
compatUtils
,
computed
,
createApp
,
createBlock
,
createCommentVNode
,
createElementBlock
,
createBaseVNode
as
createElementVNode
,
createHydrationRenderer
,
createPropsRestProxy
,
createRenderer
,
createSlots
,
createStaticVNode
,
createTextVNode
,
createVNode
,
createVueApp
,
defineAsyncComponent
,
defineComponent
,
defineEmits
,
defineExpose
,
defineProps
,
devtools
,
getCurrentInstance
,
getTransitionRawChildren
,
guardReactiveProps
,
h
,
handleError
,
initCustomFormatter
,
inject
,
injectHook
,
isInSSRComponentSetup
,
isMemoSame
,
isRuntimeOnly
,
isVNode
,
mergeDefaults
,
mergeProps
,
nextTick
,
onActivated
,
onBeforeMount
,
onBeforeUnmount
,
onBeforeUpdate
,
onDeactivated
,
onErrorCaptured
,
onMounted
,
onRenderTracked
,
onRenderTriggered
,
onServerPrefetch
,
onUnmounted
,
onUpdated
,
openBlock
,
popScopeId
,
provide
,
pushScopeId
,
queuePostFlushCb
,
registerRuntimeCompiler
,
render
,
renderList
,
renderSlot
,
resolveComponent
,
resolveDirective
,
resolveDynamicComponent
,
resolveFilter
,
resolveTransitionHooks
,
setBlockTracking
,
setDevtoolsHook
,
setTransitionHooks
,
ssrContextKey
,
toHandlers
,
transformVNodeArgs
,
useAttrs
,
useCssModule
,
useCssStyles
,
useCssVars
,
useSSRContext
,
useSlots
,
useTransitionState
,
version
,
warn
,
watch
,
watchEffect
,
watchPostEffect
,
watchSyncEffect
,
withAsyncContext
,
withCtx
,
withDefaults
,
withDirectives
,
withMemo
,
withScopeId
};
packages/uni-app-vue/dist/nvue.runtime.esm.prod.js
浏览文件 @
ac3a53cf
...
...
@@ -7985,4 +7985,5 @@ var createApp = function () {
return
app
;
};
export
{
BaseTransition
,
Comment
,
Fragment
,
KeepAlive
,
Static
,
Suspense
,
Teleport
,
Text
,
callWithAsyncErrorHandling
,
callWithErrorHandling
,
cloneVNode
,
compatUtils
,
computed
,
createApp
,
createBlock
,
createCommentVNode
,
createElementBlock
,
createBaseVNode
as
createElementVNode
,
createHydrationRenderer
,
createPropsRestProxy
,
createRenderer
,
createSlots
,
createStaticVNode
,
createTextVNode
,
createVNode
,
defineAsyncComponent
,
defineComponent
,
defineEmits
,
defineExpose
,
defineProps
,
devtools
,
getCurrentInstance
,
getTransitionRawChildren
,
guardReactiveProps
,
h
,
handleError
,
initCustomFormatter
,
inject
,
injectHook
,
isInSSRComponentSetup
,
isMemoSame
,
isRuntimeOnly
,
isVNode
,
mergeDefaults
,
mergeProps
,
nextTick
,
onActivated
,
onBeforeMount
,
onBeforeUnmount
,
onBeforeUpdate
,
onDeactivated
,
onErrorCaptured
,
onMounted
,
onRenderTracked
,
onRenderTriggered
,
onServerPrefetch
,
onUnmounted
,
onUpdated
,
openBlock
,
popScopeId
,
provide
,
pushScopeId
,
queuePostFlushCb
,
registerRuntimeCompiler
,
render
,
renderList
,
renderSlot
,
resolveComponent
,
resolveDirective
,
resolveDynamicComponent
,
resolveFilter
,
resolveTransitionHooks
,
setBlockTracking
,
setDevtoolsHook
,
setTransitionHooks
,
ssrContextKey
,
toHandlers
,
transformVNodeArgs
,
useAttrs
,
useCssModule
,
useCssStyles
,
useCssVars
,
useSSRContext
,
useSlots
,
useTransitionState
,
version
,
warn
,
watch
,
watchEffect
,
watchPostEffect
,
watchSyncEffect
,
withAsyncContext
,
withCtx
,
withDefaults
,
withDirectives
,
withMemo
,
withScopeId
};
var
createVueApp
=
createApp
;
export
{
BaseTransition
,
Comment
,
Fragment
,
KeepAlive
,
Static
,
Suspense
,
Teleport
,
Text
,
callWithAsyncErrorHandling
,
callWithErrorHandling
,
cloneVNode
,
compatUtils
,
computed
,
createApp
,
createBlock
,
createCommentVNode
,
createElementBlock
,
createBaseVNode
as
createElementVNode
,
createHydrationRenderer
,
createPropsRestProxy
,
createRenderer
,
createSlots
,
createStaticVNode
,
createTextVNode
,
createVNode
,
createVueApp
,
defineAsyncComponent
,
defineComponent
,
defineEmits
,
defineExpose
,
defineProps
,
devtools
,
getCurrentInstance
,
getTransitionRawChildren
,
guardReactiveProps
,
h
,
handleError
,
initCustomFormatter
,
inject
,
injectHook
,
isInSSRComponentSetup
,
isMemoSame
,
isRuntimeOnly
,
isVNode
,
mergeDefaults
,
mergeProps
,
nextTick
,
onActivated
,
onBeforeMount
,
onBeforeUnmount
,
onBeforeUpdate
,
onDeactivated
,
onErrorCaptured
,
onMounted
,
onRenderTracked
,
onRenderTriggered
,
onServerPrefetch
,
onUnmounted
,
onUpdated
,
openBlock
,
popScopeId
,
provide
,
pushScopeId
,
queuePostFlushCb
,
registerRuntimeCompiler
,
render
,
renderList
,
renderSlot
,
resolveComponent
,
resolveDirective
,
resolveDynamicComponent
,
resolveFilter
,
resolveTransitionHooks
,
setBlockTracking
,
setDevtoolsHook
,
setTransitionHooks
,
ssrContextKey
,
toHandlers
,
transformVNodeArgs
,
useAttrs
,
useCssModule
,
useCssStyles
,
useCssVars
,
useSSRContext
,
useSlots
,
useTransitionState
,
version
,
warn
,
watch
,
watchEffect
,
watchPostEffect
,
watchSyncEffect
,
withAsyncContext
,
withCtx
,
withDefaults
,
withDirectives
,
withMemo
,
withScopeId
};
packages/uni-app-vue/lib/nvue.runtime.esm.js
浏览文件 @
ac3a53cf
...
...
@@ -8120,6 +8120,7 @@ const createApp = ((...args) => {
return
mount
(
container
);
};
return
app
;
});
});
const
createVueApp
=
createApp
;
export
{
BaseTransition
,
Comment
,
Fragment
,
KeepAlive
,
Static
,
Suspense
,
Teleport
,
Text
,
callWithAsyncErrorHandling
,
callWithErrorHandling
,
cloneVNode
,
compatUtils
,
computed
,
createApp
,
createBlock
,
createCommentVNode
,
createElementBlock
,
createBaseVNode
as
createElementVNode
,
createHydrationRenderer
,
createPropsRestProxy
,
createRenderer
,
createSlots
,
createStaticVNode
,
createTextVNode
,
createVNode
,
defineAsyncComponent
,
defineComponent
,
defineEmits
,
defineExpose
,
defineProps
,
devtools
,
getCurrentInstance
,
getTransitionRawChildren
,
guardReactiveProps
,
h
,
handleError
,
initCustomFormatter
,
inject
,
injectHook
,
isInSSRComponentSetup
,
isMemoSame
,
isRuntimeOnly
,
isVNode
,
mergeDefaults
,
mergeProps
,
nextTick
,
onActivated
,
onBeforeMount
,
onBeforeUnmount
,
onBeforeUpdate
,
onDeactivated
,
onErrorCaptured
,
onMounted
,
onRenderTracked
,
onRenderTriggered
,
onServerPrefetch
,
onUnmounted
,
onUpdated
,
openBlock
,
popScopeId
,
provide
,
pushScopeId
,
queuePostFlushCb
,
registerRuntimeCompiler
,
render
,
renderList
,
renderSlot
,
resolveComponent
,
resolveDirective
,
resolveDynamicComponent
,
resolveFilter
,
resolveTransitionHooks
,
setBlockTracking
,
setDevtoolsHook
,
setTransitionHooks
,
ssrContextKey
,
toHandlers
,
transformVNodeArgs
,
useAttrs
,
useCssModule
,
useCssStyles
,
useCssVars
,
useSSRContext
,
useSlots
,
useTransitionState
,
version
,
warn
,
watch
,
watchEffect
,
watchPostEffect
,
watchSyncEffect
,
withAsyncContext
,
withCtx
,
withDefaults
,
withDirectives
,
withMemo
,
withScopeId
};
export
{
BaseTransition
,
Comment
,
Fragment
,
KeepAlive
,
Static
,
Suspense
,
Teleport
,
Text
,
callWithAsyncErrorHandling
,
callWithErrorHandling
,
cloneVNode
,
compatUtils
,
computed
,
createApp
,
createBlock
,
createCommentVNode
,
createElementBlock
,
createBaseVNode
as
createElementVNode
,
createHydrationRenderer
,
createPropsRestProxy
,
createRenderer
,
createSlots
,
createStaticVNode
,
createTextVNode
,
createVNode
,
createVueApp
,
defineAsyncComponent
,
defineComponent
,
defineEmits
,
defineExpose
,
defineProps
,
devtools
,
getCurrentInstance
,
getTransitionRawChildren
,
guardReactiveProps
,
h
,
handleError
,
initCustomFormatter
,
inject
,
injectHook
,
isInSSRComponentSetup
,
isMemoSame
,
isRuntimeOnly
,
isVNode
,
mergeDefaults
,
mergeProps
,
nextTick
,
onActivated
,
onBeforeMount
,
onBeforeUnmount
,
onBeforeUpdate
,
onDeactivated
,
onErrorCaptured
,
onMounted
,
onRenderTracked
,
onRenderTriggered
,
onServerPrefetch
,
onUnmounted
,
onUpdated
,
openBlock
,
popScopeId
,
provide
,
pushScopeId
,
queuePostFlushCb
,
registerRuntimeCompiler
,
render
,
renderList
,
renderSlot
,
resolveComponent
,
resolveDirective
,
resolveDynamicComponent
,
resolveFilter
,
resolveTransitionHooks
,
setBlockTracking
,
setDevtoolsHook
,
setTransitionHooks
,
ssrContextKey
,
toHandlers
,
transformVNodeArgs
,
useAttrs
,
useCssModule
,
useCssStyles
,
useCssVars
,
useSSRContext
,
useSlots
,
useTransitionState
,
version
,
warn
,
watch
,
watchEffect
,
watchPostEffect
,
watchSyncEffect
,
withAsyncContext
,
withCtx
,
withDefaults
,
withDirectives
,
withMemo
,
withScopeId
};
packages/uni-cli-shared/src/constants.ts
浏览文件 @
ac3a53cf
...
...
@@ -25,6 +25,8 @@ export const JSON_JS_MAP = {
export
const
ASSETS_INLINE_LIMIT
=
40
*
1024
export
const
APP_SERVICE_FILENAME
=
'
app-service.js
'
export
const
APP_CONFIG
=
'
app-config.js
'
export
const
APP_CONFIG_SERVICE
=
'
app-config-service.js
'
export
const
BINDING_COMPONENTS
=
'
__BINDING_COMPONENTS__
'
// APP 平台解析页面后缀的优先级
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录