babel-preset-evergreen 0.9.14 → 0.9.15

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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.cjs +8 -10
  3. package/package.json +14 -15
package/README.md CHANGED
@@ -15,7 +15,7 @@ A [babel] preset for modern javascript syntaxes.
15
15
 
16
16
  This preset can transform:
17
17
 
18
- - ECMAScript 2022 syntax
18
+ - ECMAScript 2024 syntax
19
19
 
20
20
  ## Installation
21
21
 
package/index.cjs CHANGED
@@ -7,17 +7,12 @@ module.exports = declare((api, options = {}) => {
7
7
 
8
8
  const { polyfill = false } = options;
9
9
 
10
- const pkg = require('./package.json');
11
-
12
10
  const presets = [
13
11
  [
14
12
  '@babel/env',
15
13
  {
16
14
  modules: false,
17
- useBuiltIns: { pure: false, global: 'usage' }[polyfill] || false,
18
- ...(polyfill === 'global'
19
- ? { corejs: pkg.dependencies['core-js'] }
20
- : undefined),
15
+ useBuiltIns: false,
21
16
  shippedProposals: true,
22
17
  spec: true,
23
18
  bugfixes: true,
@@ -25,15 +20,18 @@ module.exports = declare((api, options = {}) => {
25
20
  ],
26
21
  ];
27
22
 
23
+ const pkg = require('./package.json');
24
+
28
25
  return {
29
26
  presets,
30
27
  plugins: [
31
- polyfill === 'pure'
28
+ polyfill
32
29
  ? [
33
- '@babel/transform-runtime',
30
+ 'babel-plugin-polyfill-corejs3',
34
31
  {
35
- corejs: { version: 3, proposals: true },
36
- version: pkg.dependencies['@babel/runtime-corejs3'],
32
+ version: pkg.dependencies['core-js'],
33
+ proposals: true,
34
+ method: `usage-${polyfill}`,
37
35
  },
38
36
  ]
39
37
  : undefined,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babel-preset-evergreen",
3
- "version": "0.9.14",
3
+ "version": "0.9.15",
4
4
  "description": "A `babel` preset for modern javascript syntaxes",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -30,27 +30,27 @@
30
30
  },
31
31
  "main": "index.cjs",
32
32
  "files": [],
33
+ "type": "commonjs",
33
34
  "dependencies": {
34
- "@babel/helper-plugin-utils": "^7.24.0",
35
- "@babel/plugin-transform-runtime": "^7.24.3",
36
- "@babel/preset-env": "^7.24.4",
37
- "@babel/runtime-corejs3": "^7.24.4",
38
- "core-js": "^3.36.1"
35
+ "@babel/helper-plugin-utils": "^7.24.5",
36
+ "@babel/preset-env": "^7.24.5",
37
+ "babel-plugin-polyfill-corejs3": "^0.10.4",
38
+ "core-js": "^3.37.1"
39
39
  },
40
40
  "devDependencies": {
41
- "@babel/core": "^7.24.4",
42
- "@bring-it/npm": "^0.5.2",
43
- "@nice-move/cli": "^0.11.9",
44
- "@nice-move/eslint-config-base": "^0.11.3",
45
- "@nice-move/prettier-config": "^0.11.1",
46
- "ava": "^6.1.2",
41
+ "@babel/core": "^7.24.5",
42
+ "@bring-it/npm": "^0.5.4",
43
+ "@nice-move/cli": "^0.11.12",
44
+ "@nice-move/eslint-config-base": "^0.11.8",
45
+ "@nice-move/prettier-config": "^0.12.3",
46
+ "ava": "^6.1.3",
47
47
  "eslint": "^8.57.0",
48
48
  "eslint-plugin-ava": "^14.0.0",
49
- "garou": "^0.7.3",
49
+ "garou": "^0.7.5",
50
50
  "prettier": "^3.2.5"
51
51
  },
52
52
  "peerDependencies": {
53
- "@babel/core": "^7.24.4"
53
+ "@babel/core": "^7.24.5"
54
54
  },
55
55
  "engines": {
56
56
  "node": ">=18.12.0 || ^16.15.0"
@@ -59,7 +59,6 @@
59
59
  "access": "public",
60
60
  "registry": "https://registry.npmjs.org/"
61
61
  },
62
- "packageManager": "pnpm@8.15.7",
63
62
  "eslintConfig": {
64
63
  "extends": "@nice-move/eslint-config-base"
65
64
  },