@redhat-cloud-services/frontend-components-config 4.6.26 → 4.6.27

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/config.js +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redhat-cloud-services/frontend-components-config",
3
- "version": "4.6.26",
3
+ "version": "4.6.27",
4
4
  "description": "Config plugins and settings for RedHat Cloud Services project.",
5
5
  "main": "index.js",
6
6
  "bin": {
package/src/config.js CHANGED
@@ -42,6 +42,7 @@ module.exports = ({
42
42
  useCache = false,
43
43
  cacheConfig = {},
44
44
  _unstableHotReload = false,
45
+ resolve = {},
45
46
  } = {}) => {
46
47
  const filenameMask = `js/[name]${!_unstableHotReload && useFileHash ? `.${Date.now()}.[fullhash]` : ''}.js`;
47
48
  if (betaEnv) {
@@ -172,9 +173,11 @@ module.exports = ({
172
173
  ],
173
174
  },
174
175
  resolve: {
175
- extensions: ['.ts', '.tsx', '.mjs', '.js', '.scss'],
176
+ ...resolve,
177
+ extensions: ['.ts', '.tsx', '.mjs', '.js', '.scss', ...(resolve.extensions, [])],
176
178
  alias: {
177
179
  ...(bundlePfModules ? {} : searchIgnoredStyles(rootFolder)),
180
+ ...resolve.alias,
178
181
  },
179
182
  fallback: {
180
183
  path: require.resolve('path-browserify'),
@@ -185,6 +188,7 @@ module.exports = ({
185
188
  url: require.resolve('url/'),
186
189
  util: require.resolve('util/'),
187
190
  process: 'process/browser.js',
191
+ ...resolve.fallback,
188
192
  },
189
193
  },
190
194
  devServer: {