babel-preset-evergreen 0.11.2 → 0.11.4
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/mini.cjs +2 -117
- package/package.json +16 -14
package/mini.cjs
CHANGED
|
@@ -1,126 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const modules = require('core-js-compat/modules.json');
|
|
4
|
-
|
|
5
|
-
const miniprogramCompat = [
|
|
6
|
-
'es.aggregate-error',
|
|
7
|
-
'es.aggregate-error.cause',
|
|
8
|
-
'es.array-buffer.slice',
|
|
9
|
-
'es.array.at',
|
|
10
|
-
'es.array.find-last',
|
|
11
|
-
'es.array.find-last-index',
|
|
12
|
-
'es.array.push',
|
|
13
|
-
'es.array.reverse',
|
|
14
|
-
'es.array.unscopables.flat',
|
|
15
|
-
'es.array.unscopables.flat-map',
|
|
16
|
-
'es.array.unshift',
|
|
17
|
-
'es.error.cause',
|
|
18
|
-
'es.global-this',
|
|
19
|
-
'es.json.stringify',
|
|
20
|
-
'es.object.from-entries',
|
|
21
|
-
'es.object.has-own',
|
|
22
|
-
'es.promise',
|
|
23
|
-
'es.promise.all-settled',
|
|
24
|
-
'es.promise.any',
|
|
25
|
-
'es.promise.finally',
|
|
26
|
-
'es.reflect.to-string-tag',
|
|
27
|
-
'es.regexp.flags',
|
|
28
|
-
'es.string.at-alternative',
|
|
29
|
-
'es.string.match-all',
|
|
30
|
-
'es.string.replace',
|
|
31
|
-
'es.string.replace-all',
|
|
32
|
-
'es.string.trim',
|
|
33
|
-
'es.string.trim-end',
|
|
34
|
-
'es.symbol.description',
|
|
35
|
-
'es.symbol.match-all',
|
|
36
|
-
'es.typed-array.at',
|
|
37
|
-
'es.typed-array.fill',
|
|
38
|
-
'es.typed-array.find-last',
|
|
39
|
-
'es.typed-array.find-last-index',
|
|
40
|
-
'es.typed-array.float32-array',
|
|
41
|
-
'es.typed-array.float64-array',
|
|
42
|
-
'es.typed-array.from',
|
|
43
|
-
'es.typed-array.int16-array',
|
|
44
|
-
'es.typed-array.int32-array',
|
|
45
|
-
'es.typed-array.int8-array',
|
|
46
|
-
'es.typed-array.of',
|
|
47
|
-
'es.typed-array.set',
|
|
48
|
-
'es.typed-array.sort',
|
|
49
|
-
'es.typed-array.uint16-array',
|
|
50
|
-
'es.typed-array.uint32-array',
|
|
51
|
-
'es.typed-array.uint8-array',
|
|
52
|
-
'es.typed-array.uint8-clamped-array',
|
|
53
|
-
'esnext.aggregate-error',
|
|
54
|
-
'esnext.array.at',
|
|
55
|
-
'esnext.array.find-last',
|
|
56
|
-
'esnext.array.find-last-index',
|
|
57
|
-
'esnext.array.from-async',
|
|
58
|
-
'esnext.array.group',
|
|
59
|
-
'esnext.array.group-by',
|
|
60
|
-
'esnext.array.group-by-to-map',
|
|
61
|
-
'esnext.array.group-to-map',
|
|
62
|
-
'esnext.array.to-reversed',
|
|
63
|
-
'esnext.array.to-sorted',
|
|
64
|
-
'esnext.array.to-spliced',
|
|
65
|
-
'esnext.array.with',
|
|
66
|
-
'esnext.async-iterator.constructor',
|
|
67
|
-
'esnext.async-iterator.drop',
|
|
68
|
-
'esnext.async-iterator.every',
|
|
69
|
-
'esnext.async-iterator.filter',
|
|
70
|
-
'esnext.async-iterator.find',
|
|
71
|
-
'esnext.async-iterator.flat-map',
|
|
72
|
-
'esnext.async-iterator.for-each',
|
|
73
|
-
'esnext.async-iterator.from',
|
|
74
|
-
'esnext.async-iterator.map',
|
|
75
|
-
'esnext.async-iterator.reduce',
|
|
76
|
-
'esnext.async-iterator.some',
|
|
77
|
-
'esnext.async-iterator.take',
|
|
78
|
-
'esnext.async-iterator.to-array',
|
|
79
|
-
'esnext.disposable-stack.constructor',
|
|
80
|
-
'esnext.global-this',
|
|
81
|
-
'esnext.iterator.constructor',
|
|
82
|
-
'esnext.iterator.dispose',
|
|
83
|
-
'esnext.iterator.drop',
|
|
84
|
-
'esnext.iterator.every',
|
|
85
|
-
'esnext.iterator.filter',
|
|
86
|
-
'esnext.iterator.find',
|
|
87
|
-
'esnext.iterator.flat-map',
|
|
88
|
-
'esnext.iterator.for-each',
|
|
89
|
-
'esnext.iterator.from',
|
|
90
|
-
'esnext.iterator.map',
|
|
91
|
-
'esnext.iterator.reduce',
|
|
92
|
-
'esnext.iterator.some',
|
|
93
|
-
'esnext.iterator.take',
|
|
94
|
-
'esnext.iterator.to-array',
|
|
95
|
-
'esnext.iterator.to-async',
|
|
96
|
-
'esnext.object.has-own',
|
|
97
|
-
'esnext.promise.all-settled',
|
|
98
|
-
'esnext.promise.any',
|
|
99
|
-
'esnext.set.difference.v2',
|
|
100
|
-
'esnext.set.intersection.v2',
|
|
101
|
-
'esnext.set.is-disjoint-from.v2',
|
|
102
|
-
'esnext.set.is-subset-of.v2',
|
|
103
|
-
'esnext.set.is-superset-of.v2',
|
|
104
|
-
'esnext.set.symmetric-difference.v2',
|
|
105
|
-
'esnext.set.union.v2',
|
|
106
|
-
'esnext.string.is-well-formed',
|
|
107
|
-
'esnext.string.match-all',
|
|
108
|
-
'esnext.string.replace-all',
|
|
109
|
-
'esnext.string.to-well-formed',
|
|
110
|
-
'esnext.suppressed-error.constructor',
|
|
111
|
-
'esnext.symbol.dispose',
|
|
112
|
-
'esnext.typed-array.at',
|
|
113
|
-
'esnext.typed-array.find-last',
|
|
114
|
-
'esnext.typed-array.find-last-index',
|
|
115
|
-
'esnext.typed-array.to-reversed',
|
|
116
|
-
'esnext.typed-array.to-sorted',
|
|
117
|
-
'esnext.typed-array.to-spliced',
|
|
118
|
-
'esnext.typed-array.with',
|
|
119
|
-
];
|
|
4
|
+
const miniprogramCompat = require('miniprogram-compat/data/polyfill.json');
|
|
120
5
|
|
|
121
6
|
const mini = [
|
|
122
7
|
...new Set(
|
|
123
|
-
miniprogramCompat.flatMap((item) => [
|
|
8
|
+
miniprogramCompat['3.6.1'].coreJsModules.flatMap((item) => [
|
|
124
9
|
item,
|
|
125
10
|
item.replace('esnext.', 'es.'),
|
|
126
11
|
item.replace('es.', 'esnext.'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babel-preset-evergreen",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.4",
|
|
4
4
|
"description": "A `babel` preset for modern javascript syntaxes",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"homepage": "https://github.com/best-shot/babel-preset-evergreen",
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
26
|
-
"url": "https://github.com/best-shot/babel-preset-evergreen.git"
|
|
26
|
+
"url": "git+https://github.com/best-shot/babel-preset-evergreen.git"
|
|
27
27
|
},
|
|
28
28
|
"bugs": {
|
|
29
29
|
"url": "https://github.com/best-shot/babel-preset-evergreen/issues"
|
|
@@ -34,27 +34,29 @@
|
|
|
34
34
|
],
|
|
35
35
|
"type": "commonjs",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@babel/helper-plugin-utils": "^7.
|
|
38
|
-
"@babel/preset-env": "^7.
|
|
37
|
+
"@babel/helper-plugin-utils": "^7.27.1",
|
|
38
|
+
"@babel/preset-env": "^7.27.2",
|
|
39
39
|
"babel-plugin-polyfill-corejs3": "^0.12.0",
|
|
40
|
-
"core-js": "^3.
|
|
41
|
-
"core-js-compat": "^3.
|
|
40
|
+
"core-js": "^3.42.0",
|
|
41
|
+
"core-js-compat": "^3.42.0",
|
|
42
|
+
"miniprogram-compat": "^1.0.5"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
|
-
"@babel/core": "^7.
|
|
45
|
+
"@babel/core": "^7.27.1",
|
|
45
46
|
"@bring-it/npm": "^0.6.0",
|
|
46
|
-
"@nice-move/all-in-base": "^0.4.
|
|
47
|
-
"ava": "^6.
|
|
48
|
-
"eslint": "^9.
|
|
49
|
-
"garou": "^0.9.
|
|
47
|
+
"@nice-move/all-in-base": "^0.4.26",
|
|
48
|
+
"ava": "^6.3.0",
|
|
49
|
+
"eslint": "^9.26.0",
|
|
50
|
+
"garou": "^0.9.7",
|
|
50
51
|
"prettier": "^3.5.3",
|
|
51
|
-
"typescript": "^5.8.
|
|
52
|
+
"typescript": "^5.8.3"
|
|
52
53
|
},
|
|
53
54
|
"peerDependencies": {
|
|
54
|
-
"@babel/core": "^7.
|
|
55
|
+
"@babel/core": "^7.27.1"
|
|
55
56
|
},
|
|
56
57
|
"engines": {
|
|
57
|
-
"node": ">=20.
|
|
58
|
+
"node": ">=20.18.0",
|
|
59
|
+
"pnpm": "^10.10.0"
|
|
58
60
|
},
|
|
59
61
|
"publishConfig": {
|
|
60
62
|
"access": "public",
|