@commercetools-frontend/babel-preset-mc-app 21.23.10 → 21.24.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @commercetools-frontend/babel-preset-mc-app
2
2
 
3
+ ## 21.24.0
4
+
5
+ ### Patch Changes
6
+
7
+ - [#3003](https://github.com/commercetools/merchant-center-application-kit/pull/3003) [`a78e9684d`](https://github.com/commercetools/merchant-center-application-kit/commit/a78e9684d038b0c708d52338fc052e9e6d8fe440) Thanks [@emmenko](https://github.com/emmenko)! - Refine browser targets
8
+
3
9
  ## 21.23.10
4
10
 
5
11
  ## 21.23.9
package/create.js CHANGED
@@ -1,3 +1,11 @@
1
+ // https://jamie.build/last-2-versions
2
+ // https://browsersl.ist/
3
+ const browsersTarget = [
4
+ 'supports es6-module and >0.25%',
5
+ 'not ie 11',
6
+ 'not op_mini all',
7
+ ];
8
+
1
9
  const defaultOptions = {
2
10
  // Enables new JSX runtime `automatic`.
3
11
  runtime: 'classic',
@@ -40,7 +48,7 @@ module.exports = function createBabePresetConfigForMcApp(api, opts = {}, env) {
40
48
  require('@babel/preset-env').default,
41
49
  {
42
50
  targets: {
43
- browsers: ['last 2 versions'],
51
+ browsers: browsersTarget,
44
52
  node: 'current',
45
53
  },
46
54
  },
@@ -50,7 +58,7 @@ module.exports = function createBabePresetConfigForMcApp(api, opts = {}, env) {
50
58
  require('@babel/preset-env').default,
51
59
  {
52
60
  targets: {
53
- browsers: ['last 2 versions'],
61
+ browsers: browsersTarget,
54
62
  },
55
63
  ...(options.disableCoreJs
56
64
  ? {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/babel-preset-mc-app",
3
- "version": "21.23.10",
3
+ "version": "21.24.0",
4
4
  "description": "Babel preset used by a MC application",
5
5
  "bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
6
6
  "repository": {