@elliemae/pui-cli 5.22.1 → 5.22.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.
@@ -187,16 +187,17 @@ const isGoogleTagManagerEnabled = () => {
187
187
  return !!appConfig?.googleTagManager;
188
188
  };
189
189
 
190
- const getCompressionPlugins = () => {
190
+ const getCompressionPlugins = (isLibrary = false) => {
191
+ const excludeList = [
192
+ /\/adrum-ext/,
193
+ /\/emuiUserMonitoring/,
194
+ /\/emuiDiagnostics/,
195
+ /\/emuiAppLoader/,
196
+ /\/encwLoader/,
197
+ ];
191
198
  const commonConfig = {
192
199
  test: /\.(js|css)$/,
193
- exclude: [
194
- /\/adrum-ext/,
195
- /\/emuiUserMonitoring/,
196
- /\/emuiDiagnostics/,
197
- /\/emuiAppLoader/,
198
- /\/encwLoader/,
199
- ],
200
+ exclude: !isLibrary ? excludeList : [],
200
201
  // we are compressing all files since in aws cloudfront edge lambda, we don't want to whitelist files that are not compressed due to below limits
201
202
  minRatio: Number.MAX_SAFE_INTEGER,
202
203
  };
@@ -68,7 +68,7 @@ module.exports = require('./webpack.lib.base.babel')({
68
68
  chunkFilename: `css/${libraryName}.[contenthash].chunk.css`,
69
69
  }),
70
70
 
71
- ...getCompressionPlugins(),
71
+ ...getCompressionPlugins(true),
72
72
 
73
73
  new BundleAnalyzerPlugin({
74
74
  analyzerMode: 'static',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-cli",
3
- "version": "5.22.1",
3
+ "version": "5.22.2",
4
4
  "private": false,
5
5
  "description": "EllieMae Platform UI CLI",
6
6
  "sideEffects": false,