babel-preset-evergreen 0.10.3 → 0.10.5

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/index.cjs +15 -2
  2. package/mini.cjs +2 -0
  3. package/package.json +1 -1
package/index.cjs CHANGED
@@ -25,7 +25,12 @@ module.exports = declare((api, options = {}) => {
25
25
  return { presets };
26
26
  }
27
27
 
28
- const { usage = 'global', include, exclude, mini = false } = polyfill;
28
+ const {
29
+ usage = 'global',
30
+ include = [],
31
+ exclude = [],
32
+ mini = false,
33
+ } = polyfill;
29
34
 
30
35
  const pkg = require('./package.json');
31
36
 
@@ -42,6 +47,14 @@ module.exports = declare((api, options = {}) => {
42
47
  exclude: mini ? [...exclude, ...excludeIfMini] : exclude,
43
48
  },
44
49
  ],
45
- ],
50
+ mini
51
+ ? [
52
+ '@babel/plugin-transform-unicode-property-regex',
53
+ {
54
+ useUnicodeFlag: false,
55
+ },
56
+ ]
57
+ : undefined,
58
+ ].filter(Boolean),
46
59
  };
47
60
  });
package/mini.cjs CHANGED
@@ -1,3 +1,5 @@
1
+ 'use strict';
2
+
1
3
  const modules = require('core-js-compat/modules.json');
2
4
 
3
5
  const miniprogramCompat = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babel-preset-evergreen",
3
- "version": "0.10.3",
3
+ "version": "0.10.5",
4
4
  "description": "A `babel` preset for modern javascript syntaxes",
5
5
  "license": "MIT",
6
6
  "author": {