@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.
- package/package.json +1 -1
- package/src/config.js +5 -1
package/package.json
CHANGED
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
|
-
|
|
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: {
|