@elliemae/pui-cli 6.0.0-beta.26 → 6.0.0-beta.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.
@@ -79,7 +79,10 @@ const jestConfig = {
79
79
  '^.+\\.[jt]sx?$': [
80
80
  'esbuild-jest',
81
81
  {
82
- target: 'node14',
82
+ target: 'es2020',
83
+ loaders: {
84
+ '.js': 'jsx',
85
+ },
83
86
  },
84
87
  ],
85
88
  },
@@ -185,16 +185,17 @@ const isGoogleTagManagerEnabled = () => {
185
185
  return !!appConfig?.googleTagManager;
186
186
  };
187
187
 
188
- const getCompressionPlugins = () => {
188
+ const getCompressionPlugins = (isLibrary = false) => {
189
+ const excludeList = [
190
+ /\/adrum-ext/,
191
+ /\/emuiUserMonitoring/,
192
+ /\/emuiDiagnostics/,
193
+ /\/emuiAppLoader/,
194
+ /\/encwLoader/,
195
+ ];
189
196
  const commonConfig = {
190
197
  test: /\.(js|css)$/,
191
- exclude: [
192
- /\/adrum-ext/,
193
- /\/emuiUserMonitoring/,
194
- /\/emuiDiagnostics/,
195
- /\/emuiAppLoader/,
196
- /\/encwLoader/,
197
- ],
198
+ exclude: !isLibrary ? excludeList : [],
198
199
  // 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
199
200
  minRatio: Number.MAX_SAFE_INTEGER,
200
201
  };
@@ -62,7 +62,7 @@ module.exports = require('./webpack.lib.base.babel')({
62
62
  chunkFilename: `css/${libraryName}.[contenthash].chunk.css`,
63
63
  }),
64
64
 
65
- ...getCompressionPlugins(),
65
+ ...getCompressionPlugins(true),
66
66
 
67
67
  new BundleAnalyzerPlugin({
68
68
  analyzerMode: 'static',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/pui-cli",
3
- "version": "6.0.0-beta.26",
3
+ "version": "6.0.0-beta.27",
4
4
  "private": false,
5
5
  "description": "ICE MT UI Platform CLI",
6
6
  "sideEffects": false,