befly-vite 1.42.0 → 1.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +0 -10
- package/package.json +1 -2
package/index.js
CHANGED
|
@@ -2,7 +2,6 @@ import { existsSync, realpathSync } from "node:fs";
|
|
|
2
2
|
import { join } from "node:path";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
4
|
|
|
5
|
-
import legacyPlugin from "@vitejs/plugin-legacy";
|
|
6
5
|
import vue from "@vitejs/plugin-vue";
|
|
7
6
|
import { TDesignResolver } from "unplugin-vue-components/resolvers";
|
|
8
7
|
import Components from "unplugin-vue-components/vite";
|
|
@@ -19,10 +18,6 @@ const DEFAULT_LIGHTNINGCSS_TARGETS = {
|
|
|
19
18
|
ios_saf: 16 << 16,
|
|
20
19
|
safari: 16 << 16
|
|
21
20
|
};
|
|
22
|
-
const DEFAULT_LEGACY_OPTIONS = {
|
|
23
|
-
targets: ["defaults", "not IE 11"],
|
|
24
|
-
modernPolyfills: true
|
|
25
|
-
};
|
|
26
21
|
|
|
27
22
|
function normalizeResolvers(resolvers) {
|
|
28
23
|
if (resolvers === null || resolvers === undefined) {
|
|
@@ -76,7 +71,6 @@ export function createBeflyViteConfig(options = {}) {
|
|
|
76
71
|
//
|
|
77
72
|
root,
|
|
78
73
|
analyzer = false,
|
|
79
|
-
legacy = true,
|
|
80
74
|
resolvers,
|
|
81
75
|
manualChunks,
|
|
82
76
|
viteConfig = {}
|
|
@@ -108,10 +102,6 @@ export function createBeflyViteConfig(options = {}) {
|
|
|
108
102
|
})
|
|
109
103
|
);
|
|
110
104
|
plugins.push(createComponentsPlugin({ resolvers: resolvers }));
|
|
111
|
-
if (legacy !== false) {
|
|
112
|
-
const legacyOptions = legacy === true ? DEFAULT_LEGACY_OPTIONS : legacy;
|
|
113
|
-
plugins.push(...legacyPlugin(legacyOptions));
|
|
114
|
-
}
|
|
115
105
|
if (analyzer) {
|
|
116
106
|
plugins.push(
|
|
117
107
|
bundleAnalyzer({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "befly-vite",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.43.0",
|
|
4
4
|
"gitHead": "282f7accca9c8d55956a5490c0365cce4a1ad90d",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Befly Vite 配置预设和插件集合",
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"registry": "https://registry.npmjs.org"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@vitejs/plugin-legacy": "^6.1.0",
|
|
41
40
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
42
41
|
"sass-embedded": "^1.100.0",
|
|
43
42
|
"unplugin-vue-components": "^32.1.0",
|