@shopgate/webpack 7.23.4 → 7.23.5-beta.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopgate/webpack",
3
- "version": "7.23.4",
3
+ "version": "7.23.5-beta.2",
4
4
  "description": "The webpack configuration for Shopgate's Engage.",
5
5
  "main": "webpack.config.js",
6
6
  "license": "Apache-2.0",
package/webpack.config.js CHANGED
@@ -58,7 +58,7 @@ const config = {
58
58
  publicPath: isDev ? '/' : (process.env.publicPath || './'),
59
59
  },
60
60
  resolve: {
61
- extensions: ['.json', '.js', '.jsx'],
61
+ extensions: ['.json', '.js', '.jsx', '.mjs'],
62
62
  alias: {
63
63
  ...rxPaths(),
64
64
  'react-dom': '@hot-loader/react-dom',
@@ -166,6 +166,10 @@ const config = {
166
166
  'css-loader',
167
167
  ],
168
168
  },
169
+ {
170
+ test: /\.mjs$/,
171
+ type: 'javascript/auto',
172
+ },
169
173
  {
170
174
  test: /\.(js|jsx)$/,
171
175
  exclude: new RegExp(`node_modules\\b(?!\\${path.sep}@shopgate)\\b.*`),