@vitejs/plugin-legacy 2.2.0 → 2.3.0-beta.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/dist/index.cjs +10 -8
- package/dist/index.mjs +10 -8
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -187,14 +187,16 @@ function viteLegacyPlugin(options = {}) {
|
|
|
187
187
|
if (!config2.build.cssTarget) {
|
|
188
188
|
config2.build.cssTarget = "chrome61";
|
|
189
189
|
}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
190
|
+
if (genLegacy) {
|
|
191
|
+
overriddenBuildTarget = config2.build.target !== void 0;
|
|
192
|
+
config2.build.target = [
|
|
193
|
+
"es2020",
|
|
194
|
+
"edge79",
|
|
195
|
+
"firefox67",
|
|
196
|
+
"chrome64",
|
|
197
|
+
"safari11.1"
|
|
198
|
+
];
|
|
199
|
+
}
|
|
198
200
|
}
|
|
199
201
|
return {
|
|
200
202
|
define: {
|
package/dist/index.mjs
CHANGED
|
@@ -177,14 +177,16 @@ function viteLegacyPlugin(options = {}) {
|
|
|
177
177
|
if (!config2.build.cssTarget) {
|
|
178
178
|
config2.build.cssTarget = "chrome61";
|
|
179
179
|
}
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
180
|
+
if (genLegacy) {
|
|
181
|
+
overriddenBuildTarget = config2.build.target !== void 0;
|
|
182
|
+
config2.build.target = [
|
|
183
|
+
"es2020",
|
|
184
|
+
"edge79",
|
|
185
|
+
"firefox67",
|
|
186
|
+
"chrome64",
|
|
187
|
+
"safari11.1"
|
|
188
|
+
];
|
|
189
|
+
}
|
|
188
190
|
}
|
|
189
191
|
return {
|
|
190
192
|
define: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitejs/plugin-legacy",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0-beta.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Evan You",
|
|
6
6
|
"files": [
|
|
@@ -35,18 +35,18 @@
|
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://github.com/vitejs/vite/tree/main/packages/plugin-legacy#readme",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@babel/standalone": "^7.19.
|
|
39
|
-
"core-js": "^3.25.
|
|
40
|
-
"magic-string": "^0.26.
|
|
38
|
+
"@babel/standalone": "^7.19.3",
|
|
39
|
+
"core-js": "^3.25.4",
|
|
40
|
+
"magic-string": "^0.26.5",
|
|
41
41
|
"regenerator-runtime": "^0.13.9",
|
|
42
|
-
"systemjs": "^6.
|
|
42
|
+
"systemjs": "^6.13.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"terser": "^5.4.0",
|
|
46
46
|
"vite": "^3.0.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@babel/core": "^7.19.
|
|
49
|
+
"@babel/core": "^7.19.3",
|
|
50
50
|
"picocolors": "^1.0.0",
|
|
51
51
|
"vite": "workspace:*"
|
|
52
52
|
}
|