Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
63f34f95
U
uni-app
项目概览
DCloud
/
uni-app
14 天 前同步成功
通知
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看板
提交
63f34f95
编写于
4月 07, 2024
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: 调整 @vue/compiler-sfc 导入类型
上级
182e7bf9
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
13 addition
and
12 deletion
+13
-12
packages/uni-app-uts/src/plugins/android/uvue/code/script.ts
packages/uni-app-uts/src/plugins/android/uvue/code/script.ts
+1
-1
packages/uni-app-uts/src/plugins/android/uvue/code/template.ts
...ges/uni-app-uts/src/plugins/android/uvue/code/template.ts
+1
-1
packages/uni-app-uts/src/plugins/android/uvue/sfc/compiler/compileScript.ts
...ts/src/plugins/android/uvue/sfc/compiler/compileScript.ts
+1
-1
packages/uni-app-uts/src/plugins/android/uvue/sfc/compiler/script/context.ts
...s/src/plugins/android/uvue/sfc/compiler/script/context.ts
+1
-1
packages/uni-app-uts/src/plugins/android/uvue/sfc/index.ts
packages/uni-app-uts/src/plugins/android/uvue/sfc/index.ts
+1
-1
packages/uni-app-vite/src/nvue/plugins/appCss.ts
packages/uni-app-vite/src/nvue/plugins/appCss.ts
+1
-1
packages/uni-cli-shared/src/vite/plugins/vitejs/plugins/css.ts
...ges/uni-cli-shared/src/vite/plugins/vitejs/plugins/css.ts
+2
-1
packages/uni-cli-shared/src/vite/utils/utils.ts
packages/uni-cli-shared/src/vite/utils/utils.ts
+1
-1
packages/uni-cli-shared/src/vue/polyfill.ts
packages/uni-cli-shared/src/vue/polyfill.ts
+1
-1
packages/uni-mp-vite/src/plugin/polyfill.ts
packages/uni-mp-vite/src/plugin/polyfill.ts
+1
-1
packages/vite-plugin-uni/src/utils/nvue.ts
packages/vite-plugin-uni/src/utils/nvue.ts
+1
-1
packages/vite-plugin-uni/src/utils/polyfill.ts
packages/vite-plugin-uni/src/utils/polyfill.ts
+1
-1
未找到文件。
packages/uni-app-uts/src/plugins/android/uvue/code/script.ts
浏览文件 @
63f34f95
import
{
SFCDescriptor
}
from
'
@vue/compiler-sfc
'
import
type
{
SFCDescriptor
}
from
'
@vue/compiler-sfc
'
export
function
genScript
(
{
script
}:
SFCDescriptor
,
...
...
packages/uni-app-uts/src/plugins/android/uvue/code/template.ts
浏览文件 @
63f34f95
import
{
SFCDescriptor
}
from
'
@vue/compiler-sfc
'
import
type
{
SFCDescriptor
}
from
'
@vue/compiler-sfc
'
import
{
compile
}
from
'
../compiler
'
import
{
TemplateCompilerOptions
}
from
'
../compiler/options
'
import
{
genRenderFunctionDecl
}
from
'
../compiler/utils
'
...
...
packages/uni-app-uts/src/plugins/android/uvue/sfc/compiler/compileScript.ts
浏览文件 @
63f34f95
...
...
@@ -18,7 +18,7 @@ import {
import
{
walk
}
from
'
estree-walker
'
import
type
{
RawSourceMap
}
from
'
source-map-js
'
import
{
processNormalScript
}
from
'
./script/normalScript
'
import
{
SFCTemplateCompileOptions
}
from
'
@vue/compiler-sfc
'
import
type
{
SFCTemplateCompileOptions
}
from
'
@vue/compiler-sfc
'
import
{
warnOnce
}
from
'
./warn
'
import
{
ScriptCompileContext
}
from
'
./script/context
'
import
{
...
...
packages/uni-app-uts/src/plugins/android/uvue/sfc/compiler/script/context.ts
浏览文件 @
63f34f95
...
...
@@ -5,7 +5,7 @@ import {
Program
,
TSInterfaceDeclaration
,
}
from
'
@babel/types
'
import
{
SFCDescriptor
}
from
'
@vue/compiler-sfc
'
import
type
{
SFCDescriptor
}
from
'
@vue/compiler-sfc
'
import
{
generateCodeFrame
}
from
'
@vue/shared
'
import
{
parse
as
babelParse
,
ParserPlugin
}
from
'
@babel/parser
'
import
{
ImportBinding
,
SFCScriptCompileOptions
}
from
'
../compileScript
'
...
...
packages/uni-app-uts/src/plugins/android/uvue/sfc/index.ts
浏览文件 @
63f34f95
import
{
import
type
{
SFCScriptCompileOptions
,
SFCStyleCompileOptions
,
SFCTemplateCompileOptions
,
...
...
packages/uni-app-vite/src/nvue/plugins/appCss.ts
浏览文件 @
63f34f95
import
type
{
Plugin
}
from
'
vite
'
import
type
{
PluginContext
}
from
'
rollup
'
import
fs
from
'
fs-extra
'
import
{
SFCBlock
,
SFCDescriptor
}
from
'
@vue/compiler-sfc
'
import
type
{
SFCBlock
,
SFCDescriptor
}
from
'
@vue/compiler-sfc
'
import
{
createRollupError
,
hash
,
...
...
packages/uni-cli-shared/src/vite/plugins/vitejs/plugins/css.ts
浏览文件 @
63f34f95
...
...
@@ -5,6 +5,7 @@ import glob from 'fast-glob'
import
colors
from
'
picocolors
'
import
postcssrc
from
'
postcss-load-config
'
import
{
dataToEsm
}
from
'
@rollup/pluginutils
'
import
type
{
SFCDescriptor
}
from
'
@vue/compiler-sfc
'
import
{
EmittedAsset
,
ExistingRawSourceMap
,
...
...
@@ -47,7 +48,7 @@ import { PAGES_JSON_JS, PAGES_JSON_UTS } from '../../../../constants'
import
{
createRollupError
}
from
'
../../../utils/utils
'
import
{
createCompilerError
}
from
'
@vue/compiler-core
'
import
{
createResolveErrorMsg
}
from
'
../../../../utils
'
import
{
SFCDescriptor
}
from
'
@vue/compiler-sfc
'
import
{
parseVueRequest
}
from
'
../../../utils
'
// const debug = createDebugger('vite:css')
...
...
packages/uni-cli-shared/src/vite/utils/utils.ts
浏览文件 @
63f34f95
import
type
{
ConfigEnv
,
ResolvedConfig
,
UserConfig
}
from
'
vite
'
import
{
RollupError
}
from
'
rollup
'
import
{
CompilerError
}
from
'
@vue/compiler-sfc
'
import
type
{
CompilerError
}
from
'
@vue/compiler-sfc
'
import
{
extend
}
from
'
@vue/shared
'
import
{
codeFrameColumns
}
from
'
@babel/code-frame
'
import
{
offsetToStartAndEnd
}
from
'
../plugins/vitejs/utils
'
...
...
packages/uni-cli-shared/src/vue/polyfill.ts
浏览文件 @
63f34f95
import
{
once
}
from
'
@dcloudio/uni-shared
'
import
{
import
type
{
SFCDescriptor
,
SFCScriptBlock
,
SFCScriptCompileOptions
,
...
...
packages/uni-mp-vite/src/plugin/polyfill.ts
浏览文件 @
63f34f95
import
{
extend
}
from
'
@vue/shared
'
import
{
once
}
from
'
@dcloudio/uni-shared
'
import
{
resolveBuiltIn
}
from
'
@dcloudio/uni-cli-shared
'
import
{
import
type
{
SFCAsyncStyleCompileOptions
,
SFCDescriptor
,
SFCParseOptions
,
...
...
packages/vite-plugin-uni/src/utils/nvue.ts
浏览文件 @
63f34f95
import
{
resolveBuiltIn
}
from
'
@dcloudio/uni-cli-shared
'
import
{
SFCParseOptions
,
SFCParseResult
}
from
'
@vue/compiler-sfc
'
import
type
{
SFCParseOptions
,
SFCParseResult
}
from
'
@vue/compiler-sfc
'
import
{
extend
}
from
'
@vue/shared
'
/**
...
...
packages/vite-plugin-uni/src/utils/polyfill.ts
浏览文件 @
63f34f95
...
...
@@ -7,7 +7,7 @@ import {
normalizePath
,
resolveBuiltIn
,
}
from
'
@dcloudio/uni-cli-shared
'
import
{
SFCParseOptions
}
from
'
@vue/compiler-sfc
'
import
type
{
SFCParseOptions
}
from
'
@vue/compiler-sfc
'
import
{
Plugin
}
from
'
vite
'
import
{
isString
}
from
'
@vue/shared
'
/**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录