@elliemae/pui-cli 7.10.1 → 7.10.3
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/dist/cjs/webpack/helpers.js +2 -1
- package/dist/cjs/webpack/webpack.base.babel.js +0 -24
- package/dist/cjs/webpack/webpack.lib.prod.babel.js +11 -2
- package/dist/esm/webpack/helpers.js +2 -1
- package/dist/esm/webpack/webpack.base.babel.js +0 -24
- package/dist/esm/webpack/webpack.lib.prod.babel.js +16 -3
- package/dist/types/webpack/webpack.lib.prod.babel.d.ts +1 -1
- package/package.json +4 -4
|
@@ -199,7 +199,8 @@ const getCompressionPlugins = (isLibrary = false) => {
|
|
|
199
199
|
/\/emuiUserMonitoring/,
|
|
200
200
|
/\/emuiDiagnostics/,
|
|
201
201
|
/\/emuiAppLoader/,
|
|
202
|
-
/\/encwLoader
|
|
202
|
+
/\/encwLoader/,
|
|
203
|
+
/\/emuiEncwLoader/
|
|
203
204
|
];
|
|
204
205
|
const commonConfig = {
|
|
205
206
|
test: /\.(js|css)$/,
|
|
@@ -74,12 +74,6 @@ const plugins = [
|
|
|
74
74
|
toType: "dir",
|
|
75
75
|
info: { minimized: true }
|
|
76
76
|
},
|
|
77
|
-
{
|
|
78
|
-
from: "node_modules/@elliemae/pui-user-monitoring/dist/umd/*.js",
|
|
79
|
-
to: "./latest/js/[name].[contenthash][ext]",
|
|
80
|
-
noErrorOnMissing: true,
|
|
81
|
-
info: { minimized: true }
|
|
82
|
-
},
|
|
83
77
|
{
|
|
84
78
|
from: "node_modules/@elliemae/pui-app-loader/dist/public/js",
|
|
85
79
|
to: "./latest/js",
|
|
@@ -87,12 +81,6 @@ const plugins = [
|
|
|
87
81
|
noErrorOnMissing: true,
|
|
88
82
|
info: { minimized: true }
|
|
89
83
|
},
|
|
90
|
-
{
|
|
91
|
-
from: "node_modules/@elliemae/pui-app-loader/dist/umd/*.js",
|
|
92
|
-
to: "./latest/js/[name].[contenthash][ext]",
|
|
93
|
-
noErrorOnMissing: true,
|
|
94
|
-
info: { minimized: true }
|
|
95
|
-
},
|
|
96
84
|
{
|
|
97
85
|
from: "node_modules/@elliemae/encw-loader/dist/public/js",
|
|
98
86
|
to: "./latest/js",
|
|
@@ -100,12 +88,6 @@ const plugins = [
|
|
|
100
88
|
noErrorOnMissing: true,
|
|
101
89
|
info: { minimized: true }
|
|
102
90
|
},
|
|
103
|
-
{
|
|
104
|
-
from: "node_modules/@elliemae/encw-loader/dist/umd/*.js",
|
|
105
|
-
to: "./latest/js/[name].[contenthash][ext]",
|
|
106
|
-
noErrorOnMissing: true,
|
|
107
|
-
info: { minimized: true }
|
|
108
|
-
},
|
|
109
91
|
{
|
|
110
92
|
from: "node_modules/@elliemae/pui-diagnostics/dist/public/js",
|
|
111
93
|
to: "./latest/js",
|
|
@@ -113,12 +95,6 @@ const plugins = [
|
|
|
113
95
|
noErrorOnMissing: true,
|
|
114
96
|
info: { minimized: true }
|
|
115
97
|
},
|
|
116
|
-
{
|
|
117
|
-
from: "node_modules/@elliemae/pui-diagnostics/dist/umd/*.js",
|
|
118
|
-
to: "./latest/js/[name].[contenthash][ext]",
|
|
119
|
-
noErrorOnMissing: true,
|
|
120
|
-
info: { minimized: true }
|
|
121
|
-
},
|
|
122
98
|
{
|
|
123
99
|
from: "public",
|
|
124
100
|
to: "./latest",
|
|
@@ -59,7 +59,7 @@ const getHtmlWebpackPlugins = () => {
|
|
|
59
59
|
})
|
|
60
60
|
);
|
|
61
61
|
};
|
|
62
|
-
|
|
62
|
+
const prodConfig = {
|
|
63
63
|
mode: "production",
|
|
64
64
|
optimization: {
|
|
65
65
|
moduleIds: "deterministic",
|
|
@@ -91,4 +91,13 @@ var webpack_lib_prod_babel_default = (0, import_webpack_lib_base_babel.baseConfi
|
|
|
91
91
|
performance: {
|
|
92
92
|
assetFilter: (assetFilename) => !/(\.map$)|(^(main\.|favicon\.))/.test(assetFilename)
|
|
93
93
|
}
|
|
94
|
-
}
|
|
94
|
+
};
|
|
95
|
+
const prodConfigWithHash = { ...prodConfig };
|
|
96
|
+
const libraryName = (0, import_helpers.getLibraryName)();
|
|
97
|
+
prodConfigWithHash.output = {
|
|
98
|
+
path: import_node_path.default.resolve(process.cwd(), "dist/public"),
|
|
99
|
+
filename: `js/${libraryName}.[chunkhash].js`,
|
|
100
|
+
chunkFilename: `js/${libraryName}.[chunkhash].chunk.js`,
|
|
101
|
+
assetModuleFilename: "assets/[name].[hash][ext][query]"
|
|
102
|
+
};
|
|
103
|
+
var webpack_lib_prod_babel_default = [(0, import_webpack_lib_base_babel.baseConfig)(prodConfig), (0, import_webpack_lib_base_babel.baseConfig)(prodConfigWithHash)];
|
|
@@ -155,7 +155,8 @@ const getCompressionPlugins = (isLibrary = false) => {
|
|
|
155
155
|
/\/emuiUserMonitoring/,
|
|
156
156
|
/\/emuiDiagnostics/,
|
|
157
157
|
/\/emuiAppLoader/,
|
|
158
|
-
/\/encwLoader
|
|
158
|
+
/\/encwLoader/,
|
|
159
|
+
/\/emuiEncwLoader/
|
|
159
160
|
];
|
|
160
161
|
const commonConfig = {
|
|
161
162
|
test: /\.(js|css)$/,
|
|
@@ -51,12 +51,6 @@ const plugins = [
|
|
|
51
51
|
toType: "dir",
|
|
52
52
|
info: { minimized: true }
|
|
53
53
|
},
|
|
54
|
-
{
|
|
55
|
-
from: "node_modules/@elliemae/pui-user-monitoring/dist/umd/*.js",
|
|
56
|
-
to: "./latest/js/[name].[contenthash][ext]",
|
|
57
|
-
noErrorOnMissing: true,
|
|
58
|
-
info: { minimized: true }
|
|
59
|
-
},
|
|
60
54
|
{
|
|
61
55
|
from: "node_modules/@elliemae/pui-app-loader/dist/public/js",
|
|
62
56
|
to: "./latest/js",
|
|
@@ -64,12 +58,6 @@ const plugins = [
|
|
|
64
58
|
noErrorOnMissing: true,
|
|
65
59
|
info: { minimized: true }
|
|
66
60
|
},
|
|
67
|
-
{
|
|
68
|
-
from: "node_modules/@elliemae/pui-app-loader/dist/umd/*.js",
|
|
69
|
-
to: "./latest/js/[name].[contenthash][ext]",
|
|
70
|
-
noErrorOnMissing: true,
|
|
71
|
-
info: { minimized: true }
|
|
72
|
-
},
|
|
73
61
|
{
|
|
74
62
|
from: "node_modules/@elliemae/encw-loader/dist/public/js",
|
|
75
63
|
to: "./latest/js",
|
|
@@ -77,12 +65,6 @@ const plugins = [
|
|
|
77
65
|
noErrorOnMissing: true,
|
|
78
66
|
info: { minimized: true }
|
|
79
67
|
},
|
|
80
|
-
{
|
|
81
|
-
from: "node_modules/@elliemae/encw-loader/dist/umd/*.js",
|
|
82
|
-
to: "./latest/js/[name].[contenthash][ext]",
|
|
83
|
-
noErrorOnMissing: true,
|
|
84
|
-
info: { minimized: true }
|
|
85
|
-
},
|
|
86
68
|
{
|
|
87
69
|
from: "node_modules/@elliemae/pui-diagnostics/dist/public/js",
|
|
88
70
|
to: "./latest/js",
|
|
@@ -90,12 +72,6 @@ const plugins = [
|
|
|
90
72
|
noErrorOnMissing: true,
|
|
91
73
|
info: { minimized: true }
|
|
92
74
|
},
|
|
93
|
-
{
|
|
94
|
-
from: "node_modules/@elliemae/pui-diagnostics/dist/umd/*.js",
|
|
95
|
-
to: "./latest/js/[name].[contenthash][ext]",
|
|
96
|
-
noErrorOnMissing: true,
|
|
97
|
-
info: { minimized: true }
|
|
98
|
-
},
|
|
99
75
|
{
|
|
100
76
|
from: "public",
|
|
101
77
|
to: "./latest",
|
|
@@ -5,7 +5,11 @@ import HtmlWebpackPlugin from "html-webpack-plugin";
|
|
|
5
5
|
import { BundleAnalyzerPlugin } from "webpack-bundle-analyzer";
|
|
6
6
|
import { ESBuildMinifyPlugin } from "esbuild-loader";
|
|
7
7
|
import browserslistToEsbuild from "browserslist-to-esbuild";
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
getLibraryVariableName,
|
|
10
|
+
getCompressionPlugins,
|
|
11
|
+
getLibraryName
|
|
12
|
+
} from "./helpers.js";
|
|
9
13
|
import { baseConfig } from "./webpack.lib.base.babel.js";
|
|
10
14
|
const getHtmlWebpackPlugins = () => {
|
|
11
15
|
const htmlTemplateFiles = fg.sync([path.join(process.cwd(), "lib/*.html")]);
|
|
@@ -30,7 +34,7 @@ const getHtmlWebpackPlugins = () => {
|
|
|
30
34
|
})
|
|
31
35
|
);
|
|
32
36
|
};
|
|
33
|
-
|
|
37
|
+
const prodConfig = {
|
|
34
38
|
mode: "production",
|
|
35
39
|
optimization: {
|
|
36
40
|
moduleIds: "deterministic",
|
|
@@ -62,7 +66,16 @@ var webpack_lib_prod_babel_default = baseConfig({
|
|
|
62
66
|
performance: {
|
|
63
67
|
assetFilter: (assetFilename) => !/(\.map$)|(^(main\.|favicon\.))/.test(assetFilename)
|
|
64
68
|
}
|
|
65
|
-
}
|
|
69
|
+
};
|
|
70
|
+
const prodConfigWithHash = { ...prodConfig };
|
|
71
|
+
const libraryName = getLibraryName();
|
|
72
|
+
prodConfigWithHash.output = {
|
|
73
|
+
path: path.resolve(process.cwd(), "dist/public"),
|
|
74
|
+
filename: `js/${libraryName}.[chunkhash].js`,
|
|
75
|
+
chunkFilename: `js/${libraryName}.[chunkhash].chunk.js`,
|
|
76
|
+
assetModuleFilename: "assets/[name].[hash][ext][query]"
|
|
77
|
+
};
|
|
78
|
+
var webpack_lib_prod_babel_default = [baseConfig(prodConfig), baseConfig(prodConfigWithHash)];
|
|
66
79
|
export {
|
|
67
80
|
webpack_lib_prod_babel_default as default
|
|
68
81
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-cli",
|
|
3
|
-
"version": "7.10.
|
|
3
|
+
"version": "7.10.3",
|
|
4
4
|
"description": "ICE MT UI Platform CLI",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"@stylelint/postcss-css-in-js": "~0.38.0",
|
|
105
105
|
"@svgr/webpack": "~6.4.0",
|
|
106
106
|
"@swc/cli": "~0.1.57",
|
|
107
|
-
"@swc/core": "~1.3.
|
|
107
|
+
"@swc/core": "~1.3.5",
|
|
108
108
|
"@swc/jest": "~0.2.23",
|
|
109
109
|
"@testing-library/jest-dom": "~5.16.5",
|
|
110
110
|
"@testing-library/react": "~13.4.0",
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
"jest-watch-typeahead": "~2.2.0",
|
|
202
202
|
"jscodeshift": "~0.14.0",
|
|
203
203
|
"jsdoc": "~3.6.11",
|
|
204
|
-
"lerna": "~5.
|
|
204
|
+
"lerna": "~5.6.1",
|
|
205
205
|
"lint-staged": "~13.0.3",
|
|
206
206
|
"mini-css-extract-plugin": "~2.6.1",
|
|
207
207
|
"minimist": "~1.2.6",
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
"update-notifier": "~6.0.2",
|
|
253
253
|
"url-loader": "~4.1.1",
|
|
254
254
|
"uuid": "~9.0.0",
|
|
255
|
-
"vite": "~3.1.
|
|
255
|
+
"vite": "~3.1.5",
|
|
256
256
|
"vitest": "~0.23.4",
|
|
257
257
|
"vite-tsconfig-paths": "~3.5.1",
|
|
258
258
|
"webpack": "~5.74.0",
|