@shopgate/webpack 7.30.0-alpha.6 → 7.30.0-alpha.8

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/lib/i18n.js CHANGED
@@ -36,7 +36,7 @@ function readJSON(file) {
36
36
  */
37
37
  function flatten(obj, prefix = '', out = {}) {
38
38
  const result = out;
39
- // eslint-disable-next-line no-restricted-syntax
39
+
40
40
  for (const [key, value] of Object.entries(obj)) {
41
41
  const fullKey = prefix ? `${prefix}.${key}` : key;
42
42
  if (value && typeof value === 'object' && !Array.isArray(value)) {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@shopgate/webpack",
3
- "version": "7.30.0-alpha.6",
3
+ "version": "7.30.0-alpha.8",
4
4
  "description": "The webpack configuration for Shopgate's Engage.",
5
5
  "main": "webpack.config.js",
6
6
  "license": "Apache-2.0",
7
7
  "dependencies": {
8
8
  "@pmmmwh/react-refresh-webpack-plugin": "0.5.17",
9
9
  "ajv": "^8.17.1",
10
- "babel-loader": "8.4.1",
10
+ "babel-loader": "^9.2.1",
11
11
  "chalk": "^4.1.2",
12
12
  "color": "^4.2.3",
13
13
  "compression-webpack-plugin": "^10.0.0",
package/webpack.config.js CHANGED
@@ -229,6 +229,21 @@ const config = {
229
229
  test: /\.mjs$/,
230
230
  type: 'javascript/auto',
231
231
  },
232
+ // Special treatment for PWA Extension Kit to ensure compatibility with current Babel setup
233
+ // https://github.com/shopgate-professional-services/pwa-extension-kit
234
+ {
235
+ test: /\.js$/,
236
+ include: /node_modules\/@shopgate-ps\/pwa-extension-kit/,
237
+ use: {
238
+ loader: 'babel-loader',
239
+ options: {
240
+ presets: [
241
+ ['@babel/preset-env', { modules: 'commonjs' }],
242
+ '@babel/preset-react',
243
+ ],
244
+ },
245
+ },
246
+ },
232
247
  {
233
248
  test: /\.(js|jsx)$/,
234
249
  exclude: new RegExp(`node_modules\\b(?!\\${path.sep}@shopgate)\\b.*`),