@commercetools-frontend/babel-preset-mc-app 22.7.0 → 22.8.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 +10 -0
- package/create.js +11 -11
- package/package.json +21 -21
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @commercetools-frontend/babel-preset-mc-app
|
|
2
2
|
|
|
3
|
+
## 22.8.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#3082](https://github.com/commercetools/merchant-center-application-kit/pull/3082) [`e29ab64b6`](https://github.com/commercetools/merchant-center-application-kit/commit/e29ab64b6032ff42bdb2254ef4e57d16291a45db) Thanks [@renovate](https://github.com/apps/renovate)! - Use stable transform plugin packages
|
|
8
|
+
|
|
9
|
+
- [#3082](https://github.com/commercetools/merchant-center-application-kit/pull/3082) [`e29ab64b6`](https://github.com/commercetools/merchant-center-application-kit/commit/e29ab64b6032ff42bdb2254ef4e57d16291a45db) Thanks [@renovate](https://github.com/apps/renovate)! - Update dependencies
|
|
10
|
+
|
|
11
|
+
## 22.7.1
|
|
12
|
+
|
|
3
13
|
## 22.7.0
|
|
4
14
|
|
|
5
15
|
## 22.6.0
|
package/create.js
CHANGED
|
@@ -13,8 +13,8 @@ const defaultOptions = {
|
|
|
13
13
|
// Usually when bundling packages we want to keep the prop types
|
|
14
14
|
// but when building the final application we can remove them.
|
|
15
15
|
keepPropTypes: false,
|
|
16
|
-
// plugin-
|
|
17
|
-
// plugin-
|
|
16
|
+
// NOTE: `plugin-transform-class-properties`, `plugin-transform-private-methods`,
|
|
17
|
+
// `plugin-transform-private-property-in-object` have a loose option which
|
|
18
18
|
// needs to be synced. At times, for instance for better debuggability
|
|
19
19
|
// the loose option can be disabled at the cost of lowered performance.
|
|
20
20
|
disableLooseMode: false,
|
|
@@ -109,7 +109,7 @@ module.exports = function createBabePresetConfigForMcApp(api, opts = {}, env) {
|
|
|
109
109
|
// export { default } from './foo'
|
|
110
110
|
require('@babel/plugin-proposal-export-default-from'),
|
|
111
111
|
// export * from './foo'
|
|
112
|
-
require('@babel/plugin-
|
|
112
|
+
require('@babel/plugin-transform-export-namespace-from'),
|
|
113
113
|
// Necessary to include regardless of the environment because
|
|
114
114
|
// in practice some other transforms (such as object-rest-spread)
|
|
115
115
|
// don't work without it: https://github.com/babel/babel/issues/7215
|
|
@@ -119,24 +119,24 @@ module.exports = function createBabePresetConfigForMcApp(api, opts = {}, env) {
|
|
|
119
119
|
// See discussion in https://github.com/facebook/create-react-app/issues/4263
|
|
120
120
|
// Note:
|
|
121
121
|
// 'loose' mode configuration must be the same for
|
|
122
|
-
// * @babel/plugin-
|
|
123
|
-
// * @babel/plugin-
|
|
124
|
-
// * @babel/plugin-
|
|
122
|
+
// * @babel/plugin-transform-class-properties
|
|
123
|
+
// * @babel/plugin-transform-private-methods
|
|
124
|
+
// * @babel/plugin-transform-private-property-in-object
|
|
125
125
|
// (when they are enabled)
|
|
126
126
|
[
|
|
127
|
-
require('@babel/plugin-
|
|
127
|
+
require('@babel/plugin-transform-class-properties').default,
|
|
128
128
|
{
|
|
129
129
|
loose: !options.disableLooseMode,
|
|
130
130
|
},
|
|
131
131
|
],
|
|
132
132
|
[
|
|
133
|
-
require('@babel/plugin-
|
|
133
|
+
require('@babel/plugin-transform-private-methods').default,
|
|
134
134
|
{
|
|
135
135
|
loose: !options.disableLooseMode,
|
|
136
136
|
},
|
|
137
137
|
],
|
|
138
138
|
[
|
|
139
|
-
require('@babel/plugin-
|
|
139
|
+
require('@babel/plugin-transform-private-property-in-object').default,
|
|
140
140
|
{
|
|
141
141
|
loose: !options.disableLooseMode,
|
|
142
142
|
},
|
|
@@ -145,7 +145,7 @@ module.exports = function createBabePresetConfigForMcApp(api, opts = {}, env) {
|
|
|
145
145
|
// extends helper. Note that this assumes `Object.assign` is available.
|
|
146
146
|
// { ...todo, completed: true }
|
|
147
147
|
[
|
|
148
|
-
require('@babel/plugin-
|
|
148
|
+
require('@babel/plugin-transform-object-rest-spread').default,
|
|
149
149
|
{
|
|
150
150
|
useBuiltIns: true,
|
|
151
151
|
},
|
|
@@ -181,7 +181,7 @@ module.exports = function createBabePresetConfigForMcApp(api, opts = {}, env) {
|
|
|
181
181
|
},
|
|
182
182
|
],
|
|
183
183
|
require('@babel/plugin-proposal-do-expressions').default,
|
|
184
|
-
require('@babel/plugin-
|
|
184
|
+
require('@babel/plugin-transform-logical-assignment-operators').default,
|
|
185
185
|
// Use this plugin only with the JSX runtime `automatic`, otherwise
|
|
186
186
|
// use the `@emotion/babel-preset-css-prop` preset.
|
|
187
187
|
// https://emotion.sh/docs/@emotion/babel-preset-css-prop
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/babel-preset-mc-app",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.8.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": {
|
|
@@ -22,31 +22,31 @@
|
|
|
22
22
|
"main": "./index.js",
|
|
23
23
|
"module": "./index.js",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@babel/core": "^7.
|
|
26
|
-
"@babel/plugin-proposal-
|
|
27
|
-
"@babel/plugin-proposal-
|
|
28
|
-
"@babel/plugin-
|
|
29
|
-
"@babel/plugin-
|
|
30
|
-
"@babel/plugin-
|
|
31
|
-
"@babel/plugin-
|
|
32
|
-
"@babel/plugin-
|
|
33
|
-
"@babel/plugin-
|
|
34
|
-
"@babel/plugin-transform-
|
|
35
|
-
"@babel/plugin-transform-regenerator": "^7.
|
|
36
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
37
|
-
"@babel/preset-env": "^7.
|
|
38
|
-
"@babel/preset-react": "^7.
|
|
39
|
-
"@babel/preset-typescript": "^7.
|
|
40
|
-
"@babel/runtime": "^7.
|
|
41
|
-
"@babel/runtime-corejs3": "^7.
|
|
42
|
-
"@emotion/babel-plugin": "^11.
|
|
43
|
-
"@emotion/babel-preset-css-prop": "^11.
|
|
25
|
+
"@babel/core": "^7.22.17",
|
|
26
|
+
"@babel/plugin-proposal-do-expressions": "^7.22.5",
|
|
27
|
+
"@babel/plugin-proposal-export-default-from": "^7.22.17",
|
|
28
|
+
"@babel/plugin-transform-class-properties": "^7.22.5",
|
|
29
|
+
"@babel/plugin-transform-destructuring": "^7.22.15",
|
|
30
|
+
"@babel/plugin-transform-export-namespace-from": "^7.22.11",
|
|
31
|
+
"@babel/plugin-transform-logical-assignment-operators": "^7.22.11",
|
|
32
|
+
"@babel/plugin-transform-object-rest-spread": "^7.22.15",
|
|
33
|
+
"@babel/plugin-transform-private-methods": "^7.22.5",
|
|
34
|
+
"@babel/plugin-transform-private-property-in-object": "^7.22.11",
|
|
35
|
+
"@babel/plugin-transform-regenerator": "^7.22.10",
|
|
36
|
+
"@babel/plugin-transform-runtime": "^7.22.15",
|
|
37
|
+
"@babel/preset-env": "^7.22.15",
|
|
38
|
+
"@babel/preset-react": "^7.22.15",
|
|
39
|
+
"@babel/preset-typescript": "^7.22.15",
|
|
40
|
+
"@babel/runtime": "^7.22.15",
|
|
41
|
+
"@babel/runtime-corejs3": "^7.22.15",
|
|
42
|
+
"@emotion/babel-plugin": "^11.11.0",
|
|
43
|
+
"@emotion/babel-preset-css-prop": "^11.11.0",
|
|
44
44
|
"babel-plugin-dev-expression": "^0.2.3",
|
|
45
45
|
"babel-plugin-lodash": "^3.3.4",
|
|
46
46
|
"babel-plugin-macros": "^3.1.0",
|
|
47
47
|
"babel-plugin-preval": "^5.1.0",
|
|
48
48
|
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
|
49
|
-
"core-js": "^3.
|
|
49
|
+
"core-js": "^3.32.2"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
52
|
"node": "16.x || >=18.0.0"
|