Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
开源元宇宙
vue-vben-admin
提交
e2664f60
V
vue-vben-admin
项目概览
开源元宇宙
/
vue-vben-admin
与 Fork 源项目一致
从无法访问的项目Fork
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue-vben-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e2664f60
编写于
7月 29, 2021
作者:
V
vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
perf: improve legacy compatibility
上级
225bd4c3
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
305 addition
and
172 deletion
+305
-172
.env.production
.env.production
+1
-1
build/vite/plugin/index.ts
build/vite/plugin/index.ts
+15
-1
package.json
package.json
+16
-16
yarn.lock
yarn.lock
+273
-154
未找到文件。
.env.production
浏览文件 @
e2664f60
...
...
@@ -32,4 +32,4 @@ VITE_USE_IMAGEMIN= true
VITE_USE_PWA = false
# Is it compatible with older browsers
VITE_LEGACY =
fals
e
VITE_LEGACY =
tru
e
build/vite/plugin/index.ts
浏览文件 @
e2664f60
...
...
@@ -37,7 +37,21 @@ export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
!
isBuild
&&
vitePlugins
.
push
(
configHmrPlugin
());
// @vitejs/plugin-legacy
VITE_LEGACY
&&
isBuild
&&
vitePlugins
.
push
(
legacy
());
VITE_LEGACY
&&
isBuild
&&
vitePlugins
.
push
(
legacy
({
targets
:
[
'
Android > 39
'
,
'
Chrome >= 60
'
,
'
Safari >= 10.1
'
,
'
iOS >= 10.3
'
,
'
Firefox >= 54
'
,
'
Edge >= 15
'
,
],
additionalLegacyPolyfills
:
[
'
regenerator-runtime/runtime
'
],
})
);
// vite-plugin-html
vitePlugins
.
push
(
configHtmlPlugin
(
viteEnv
,
isBuild
));
...
...
package.json
浏览文件 @
e2664f60
...
...
@@ -35,9 +35,9 @@
},
"dependencies"
:
{
"
@iconify/iconify
"
:
"
^2.0.3
"
,
"
@logicflow/core
"
:
"
^0.6.
1
"
,
"
@logicflow/extension
"
:
"
^0.6.
1
"
,
"
@vueuse/core
"
:
"
^5.
1.4
"
,
"
@logicflow/core
"
:
"
^0.6.
4
"
,
"
@logicflow/extension
"
:
"
^0.6.
4
"
,
"
@vueuse/core
"
:
"
^5.
2.0
"
,
"
@zxcvbn-ts/core
"
:
"
^1.0.0-beta.0
"
,
"
ant-design-vue
"
:
"
2.2.2
"
,
"
axios
"
:
"
^0.21.1
"
,
...
...
@@ -50,7 +50,7 @@
"
mockjs
"
:
"
^1.1.0
"
,
"
nprogress
"
:
"
^0.2.0
"
,
"
path-to-regexp
"
:
"
^6.2.0
"
,
"
pinia
"
:
"
^
2.0.0-beta.5
"
,
"
pinia
"
:
"
2.0.0-beta.5
"
,
"
print-js
"
:
"
^1.6.0
"
,
"
qrcode
"
:
"
^1.4.4
"
,
"
resize-observer-polyfill
"
:
"
^1.5.1
"
,
...
...
@@ -58,10 +58,10 @@
"
tinymce
"
:
"
^5.8.2
"
,
"
vditor
"
:
"
^3.8.6
"
,
"
vue
"
:
"
3.1.5
"
,
"
vue-i18n
"
:
"
9.1.
6
"
,
"
vue-i18n
"
:
"
9.1.
7
"
,
"
vue-json-pretty
"
:
"
^2.0.2
"
,
"
vue-router
"
:
"
^4.0.10
"
,
"
vue-types
"
:
"
^4.0.
0
"
,
"
vue-types
"
:
"
^4.0.
1
"
,
"
xlsx
"
:
"
^0.17.0
"
},
"devDependencies"
:
{
...
...
@@ -77,18 +77,18 @@
"
@types/jest
"
:
"
^26.0.24
"
,
"
@types/lodash-es
"
:
"
^4.17.4
"
,
"
@types/mockjs
"
:
"
^1.0.4
"
,
"
@types/node
"
:
"
^16.4.
2
"
,
"
@types/node
"
:
"
^16.4.
6
"
,
"
@types/nprogress
"
:
"
^0.2.0
"
,
"
@types/qrcode
"
:
"
^1.4.1
"
,
"
@types/qs
"
:
"
^6.9.7
"
,
"
@types/sortablejs
"
:
"
^1.10.7
"
,
"
@typescript-eslint/eslint-plugin
"
:
"
^4.28.
4
"
,
"
@typescript-eslint/parser
"
:
"
^4.28.
4
"
,
"
@vitejs/plugin-legacy
"
:
"
^1.
4.4
"
,
"
@vitejs/plugin-vue
"
:
"
^1.
2.5
"
,
"
@vitejs/plugin-vue-jsx
"
:
"
^1.1.
6
"
,
"
@typescript-eslint/eslint-plugin
"
:
"
^4.28.
5
"
,
"
@typescript-eslint/parser
"
:
"
^4.28.
5
"
,
"
@vitejs/plugin-legacy
"
:
"
^1.
5.0
"
,
"
@vitejs/plugin-vue
"
:
"
^1.
3.0
"
,
"
@vitejs/plugin-vue-jsx
"
:
"
^1.1.
7
"
,
"
@vue/compiler-sfc
"
:
"
3.1.5
"
,
"
@vue/test-utils
"
:
"
^2.0.0-rc.1
0
"
,
"
@vue/test-utils
"
:
"
^2.0.0-rc.1
2
"
,
"
autoprefixer
"
:
"
^10.3.1
"
,
"
commitizen
"
:
"
^4.2.4
"
,
"
conventional-changelog-cli
"
:
"
^2.1.1
"
,
...
...
@@ -123,7 +123,7 @@
"
ts-jest
"
:
"
^27.0.4
"
,
"
ts-node
"
:
"
^10.1.0
"
,
"
typescript
"
:
"
4.3.5
"
,
"
vite
"
:
"
2.4.
3
"
,
"
vite
"
:
"
2.4.
4
"
,
"
vite-plugin-compression
"
:
"
^0.3.1
"
,
"
vite-plugin-html
"
:
"
^2.0.7
"
,
"
vite-plugin-imagemin
"
:
"
^0.4.1
"
,
...
...
@@ -133,13 +133,13 @@
"
vite-plugin-style-import
"
:
"
^1.0.1
"
,
"
vite-plugin-svg-icons
"
:
"
^1.0.1
"
,
"
vite-plugin-theme
"
:
"
^0.8.1
"
,
"
vue-eslint-parser
"
:
"
^7.
9
.0
"
,
"
vue-eslint-parser
"
:
"
^7.
10
.0
"
,
"
vue-tsc
"
:
"
^0.2.2
"
},
"resolutions"
:
{
"//"
:
"Used to install imagemin dependencies, because imagemin may not be installed in China. If it is abroad, you can delete it"
,
"bin-wrapper"
:
"npm:bin-wrapper-china"
,
"rollup"
:
"^2.5
3.3
"
"rollup"
:
"^2.5
5.0
"
},
"repository"
:
{
"type"
:
"git"
,
...
...
yarn.lock
浏览文件 @
e2664f60
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录