@redhat-cloud-services/frontend-components-config 4.7.0 → 4.7.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 +2 -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.7.
|
|
3
|
+
"version": "4.7.2",
|
|
4
4
|
"description": "Config plugins and settings for RedHat Cloud Services project.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"homepage": "https://github.com/RedHatInsights/frontend-components/tree/master/packages/config#readme",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.8",
|
|
24
|
-
"@redhat-cloud-services/frontend-components-config-utilities": "^1.5.
|
|
24
|
+
"@redhat-cloud-services/frontend-components-config-utilities": "^1.5.31",
|
|
25
25
|
"assert": "^2.0.0",
|
|
26
26
|
"axios": "^0.27.2",
|
|
27
27
|
"babel-loader": "^8.2.5",
|
package/src/config.js
CHANGED
|
@@ -43,6 +43,8 @@ module.exports = ({
|
|
|
43
43
|
cacheConfig = {},
|
|
44
44
|
_unstableHotReload = false,
|
|
45
45
|
resolve = {},
|
|
46
|
+
// additional node_modules dirs for searchIgnoredStyles, usefull in monorepo scenario
|
|
47
|
+
nodeModulesDirectories = [],
|
|
46
48
|
} = {}) => {
|
|
47
49
|
const filenameMask = `js/[name].${!_unstableHotReload && useFileHash ? `[fullhash].` : ''}js`;
|
|
48
50
|
if (betaEnv) {
|
|
@@ -176,7 +178,9 @@ module.exports = ({
|
|
|
176
178
|
...resolve,
|
|
177
179
|
extensions: ['.ts', '.tsx', '.mjs', '.js', '.scss', ...(resolve.extensions, [])],
|
|
178
180
|
alias: {
|
|
179
|
-
...(bundlePfModules
|
|
181
|
+
...(bundlePfModules
|
|
182
|
+
? {}
|
|
183
|
+
: searchIgnoredStyles(rootFolder, ...(Array.isArray(nodeModulesDirectories) ? nodeModulesDirectories : [nodeModulesDirectories]))),
|
|
180
184
|
...resolve.alias,
|
|
181
185
|
},
|
|
182
186
|
fallback: {
|