@redhat-cloud-services/frontend-components-config 6.0.12 → 6.0.13
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.
|
@@ -34,17 +34,22 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
34
34
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
35
35
|
};
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
var _a = require('@redhat-cloud-services/frontend-components-config-utilities'), fecLogger = _a.fecLogger, LogType = _a.LogType;
|
|
37
38
|
var index_1 = __importDefault(require("../lib/index"));
|
|
38
39
|
var webpack_plugins_1 = __importDefault(require("./webpack.plugins"));
|
|
39
|
-
var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
|
40
40
|
var fecConfig = require(process.env.FEC_CONFIG_PATH);
|
|
41
|
-
var
|
|
42
|
-
var
|
|
41
|
+
var _b = fecConfig.plugins, externalPlugins = _b === void 0 ? [] : _b, interceptChromeConfig = fecConfig.interceptChromeConfig, routes = fecConfig.routes, hotReload = fecConfig.hotReload, appUrl = fecConfig.appUrl, externalConfig = __rest(fecConfig, ["plugins", "interceptChromeConfig", "routes", "hotReload", "appUrl"]);
|
|
42
|
+
var _c = (0, index_1.default)(__assign(__assign(__assign({ rootFolder: process.env.FEC_ROOT_DIR || process.cwd() }, externalConfig), (process.env.BETA === 'true' && { deployment: 'beta/apps' })), { hotReload: false })), webpackConfig = _c.config, plugins = _c.plugins;
|
|
43
43
|
plugins.push.apply(plugins, __spreadArray(__spreadArray([], webpack_plugins_1.default, false), externalPlugins, false));
|
|
44
44
|
var start = function (env) {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
try {
|
|
46
|
+
var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
|
47
|
+
if (BundleAnalyzerPlugin && env && env.analyze === 'true') {
|
|
48
|
+
fecLogger(LogType.warn, "Webpack Bundle Analyzer support will be is deprecated and will be removed in the next major release.");
|
|
49
|
+
plugins.push(new BundleAnalyzerPlugin());
|
|
50
|
+
}
|
|
47
51
|
}
|
|
52
|
+
catch (_a) { }
|
|
48
53
|
return __assign(__assign({}, webpackConfig), { plugins: plugins });
|
|
49
54
|
};
|
|
50
55
|
exports.default = start;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prod.webpack.config.js","sourceRoot":"","sources":["../src/bin/prod.webpack.config.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"prod.webpack.config.js","sourceRoot":"","sources":["../src/bin/prod.webpack.config.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAM,IAAA,KAAyB,OAAO,CAAC,6DAA6D,CAAC,EAA7F,SAAS,eAAA,EAAE,OAAO,aAA2E,CAAC;AAEtG,uDAAkC;AAClC,sEAA8C;AAC9C,IAAM,SAAS,GAAqB,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,eAAgB,CAAC,CAAC;AAIlE,IAAA,KAAuG,SAAS,QAAnF,EAApB,eAAe,mBAAG,EAAE,KAAA,EAAE,qBAAqB,GAAmD,SAAS,sBAA5D,EAAE,MAAM,GAA2C,SAAS,OAApD,EAAE,SAAS,GAAgC,SAAS,UAAzC,EAAE,MAAM,GAAwB,SAAS,OAAjC,EAAK,cAAc,UAAK,SAAS,EAAlH,qEAAsG,CAAF,CAAe;AACnH,IAAA,KAAqC,IAAA,eAAM,+BAC/C,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,OAAO,CAAC,GAAG,EAAE,IAClD,cAAc,GACd,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,KAAK,MAAM,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC,KAE/D,SAAS,EAAE,KAAK,IAChB,EANc,aAAa,YAAA,EAAE,OAAO,aAM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