@seayoo-web/scripts 1.2.8 → 1.2.11
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.js +17 -7
- package/package.json +2 -1
- package/types/src/vite.app.d.ts +5 -0
package/dist/index.js
CHANGED
|
@@ -137,14 +137,24 @@ function definePageBuildConfig(option) {
|
|
|
137
137
|
"> 0.2%",
|
|
138
138
|
"last 5 versions and not dead",
|
|
139
139
|
"Firefox ESR",
|
|
140
|
-
"edge
|
|
141
|
-
"firefox
|
|
142
|
-
"chrome
|
|
143
|
-
"chromeAndroid
|
|
144
|
-
"safari
|
|
145
|
-
"iOS
|
|
140
|
+
"edge>=60",
|
|
141
|
+
"firefox>=60",
|
|
142
|
+
"chrome>=52",
|
|
143
|
+
"chromeAndroid>=52",
|
|
144
|
+
"safari>=8",
|
|
145
|
+
"iOS>=8"
|
|
146
146
|
],
|
|
147
|
-
|
|
147
|
+
// 提高现代版本的要求防止某些杂牌浏览器的问题
|
|
148
|
+
modernTargets: "edge>=131, firefox>=67, chrome>=72, safari>=12, chromeAndroid>=72, iOS>=12",
|
|
149
|
+
// https://github.com/vitejs/vite/blob/main/packages/plugin-legacy/src/index.ts#L170
|
|
150
|
+
// https://unpkg.com/browse/core-js@3.41.0/
|
|
151
|
+
additionalLegacyPolyfills: [
|
|
152
|
+
"regenerator-runtime/runtime.js",
|
|
153
|
+
"core-js/es/array/flat",
|
|
154
|
+
"core-js/es/global-this",
|
|
155
|
+
"core-js/es/promise/all-settled",
|
|
156
|
+
"core-js/es/symbol"
|
|
157
|
+
]
|
|
148
158
|
}),
|
|
149
159
|
htmlInjectPlugin({
|
|
150
160
|
BUILD_TIME: envs.stamp,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seayoo-web/scripts",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.11",
|
|
4
4
|
"description": "scripts for seayoo web monorepos",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"source": "index.ts",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"jiti": "^2.4.2",
|
|
48
48
|
"ora": "^8.2.0",
|
|
49
49
|
"postcss-html": "^1.8.0",
|
|
50
|
+
"terser": "^5.39.0",
|
|
50
51
|
"vite-plugin-stylelint": "^6.0.0",
|
|
51
52
|
"vite-plugin-vue-devtools": "^7.7.2",
|
|
52
53
|
"@seayoo-web/finder": "^2.0.13"
|