@xh/hoist-dev-utils 11.1.0 → 11.2.0
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/configureWebpack.js +0 -17
- package/package.json +9 -10
package/configureWebpack.js
CHANGED
|
@@ -18,7 +18,6 @@ const _ = require('lodash'),
|
|
|
18
18
|
HtmlWebpackTagsPlugin = require('html-webpack-tags-plugin'),
|
|
19
19
|
TerserPlugin = require('terser-webpack-plugin'),
|
|
20
20
|
WebpackBar = require('webpackbar'),
|
|
21
|
-
DuplicatePackageCheckerPlugin = require('@cerner/duplicate-package-checker-webpack-plugin'),
|
|
22
21
|
parseChangelogMarkdown = require('changelog-parser'),
|
|
23
22
|
babelCorePkg = require('@babel/core/package'),
|
|
24
23
|
devUtilsPkg = require('./package'),
|
|
@@ -61,10 +60,6 @@ try {
|
|
|
61
60
|
* when running the dev server.
|
|
62
61
|
* @param {Object} [env.resolveAliases] - object mapping for custom webpack module resolution.
|
|
63
62
|
* When inlineHoist=true, a mapping between @xh/hoist and the local path will be added.
|
|
64
|
-
* @param {boolean} [env.checkForDupePackages=true] - true to run build throughDuplicatePackageCheckerPlugin and output
|
|
65
|
-
* a build-time warning if duplicate packages have been resolved due to non-overlapping dependencies.
|
|
66
|
-
* @param {string[]} [env.dupePackageCheckExcludes] - optional list of string package names to exclude from dupe package
|
|
67
|
-
* checking. Defaults to ['tslib'].
|
|
68
63
|
* @param {string} [env.baseUrl] - root path prepended to all relative URLs called via FetchService. Defaults to
|
|
69
64
|
* `/api/` in production mode to work with proxy-based deployments and to `$devHost:$devGrailsPort` in dev mode.
|
|
70
65
|
* @param {string[]} [env.babelIncludePaths] - additional paths to pass Babel for transpiling via settings shared with
|
|
@@ -122,8 +117,6 @@ async function configureWebpack(env) {
|
|
|
122
117
|
reactProdMode = prodBuild || env.reactProdMode === true,
|
|
123
118
|
resolveAliases = Object.assign({}, env.resolveAliases),
|
|
124
119
|
analyzeBundles = env.analyzeBundles === true,
|
|
125
|
-
checkForDupePackages = env.checkForDupePackages !== false,
|
|
126
|
-
dupePackageCheckExcludes = env.dupePackageCheckExcludes || ['tslib'],
|
|
127
120
|
devClientOverlay = env.devClientOverlay ?? {
|
|
128
121
|
errors: true,
|
|
129
122
|
warnings: false,
|
|
@@ -706,16 +699,6 @@ async function configureWebpack(env) {
|
|
|
706
699
|
})
|
|
707
700
|
: undefined,
|
|
708
701
|
|
|
709
|
-
// Warn on dupe package included in bundle due to multiple, conflicting versions.
|
|
710
|
-
checkForDupePackages
|
|
711
|
-
? new DuplicatePackageCheckerPlugin({
|
|
712
|
-
verbose: true,
|
|
713
|
-
showHelp: false,
|
|
714
|
-
strict: false,
|
|
715
|
-
exclude: instance => dupePackageCheckExcludes.includes(instance.name)
|
|
716
|
-
})
|
|
717
|
-
: undefined,
|
|
718
|
-
|
|
719
702
|
// Display build progress - enable profile for per-loader/file type stats.
|
|
720
703
|
new WebpackBar({
|
|
721
704
|
color: '#ec7316',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist-dev-utils",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.2.0",
|
|
4
4
|
"description": "Utilities for configuring builds of Hoist-React client applications.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,37 +20,36 @@
|
|
|
20
20
|
"@babel/preset-env": "^7.28.5",
|
|
21
21
|
"@babel/preset-react": "^7.28.5",
|
|
22
22
|
"@babel/preset-typescript": "^7.28.5",
|
|
23
|
-
"@cerner/duplicate-package-checker-webpack-plugin": "2.3.0",
|
|
24
23
|
"@types/lodash": "4.x",
|
|
25
24
|
"@types/react": "18.x",
|
|
26
25
|
"@types/react-dom": "18.x",
|
|
27
26
|
"@xh/eslint-config": "^7.0",
|
|
28
27
|
"autoprefixer": "~10.4.18",
|
|
29
|
-
"babel-loader": "~10.
|
|
28
|
+
"babel-loader": "~10.1.1",
|
|
30
29
|
"babel-plugin-transform-imports": "~2.0.0",
|
|
31
30
|
"case-sensitive-paths-webpack-plugin": "~2.4.0",
|
|
32
31
|
"changelog-parser": "~3.0.1",
|
|
33
|
-
"copy-webpack-plugin": "~
|
|
32
|
+
"copy-webpack-plugin": "~14.0.0",
|
|
34
33
|
"css-loader": "~7.1.2",
|
|
35
34
|
"file-loader": "~6.2.0",
|
|
36
35
|
"html-webpack-plugin": "~5.6.0",
|
|
37
36
|
"html-webpack-tags-plugin": "~3.0.2",
|
|
38
37
|
"lodash": "~4.17.21",
|
|
39
|
-
"mini-css-extract-plugin": "~2.
|
|
38
|
+
"mini-css-extract-plugin": "~2.10.1",
|
|
40
39
|
"postcss": "~8.5.3",
|
|
41
40
|
"postcss-flexbugs-fixes": "~5.0.2",
|
|
42
41
|
"postcss-loader": "~8.2.0",
|
|
43
42
|
"rimraf": "~6.1.2",
|
|
44
|
-
"sass-embedded": "~1.
|
|
43
|
+
"sass-embedded": "~1.98.0",
|
|
45
44
|
"sass-loader": "~16.0.4",
|
|
46
45
|
"sass-material-colors": "~0.0.5",
|
|
47
46
|
"style-loader": "~4.0.0",
|
|
48
|
-
"terser-webpack-plugin": "~5.
|
|
47
|
+
"terser-webpack-plugin": "~5.4.0",
|
|
49
48
|
"type-fest": "5.x",
|
|
50
49
|
"url-loader": "~4.1.1",
|
|
51
|
-
"webpack": "~5.
|
|
52
|
-
"webpack-bundle-analyzer": "~5.
|
|
53
|
-
"webpack-cli": "~
|
|
50
|
+
"webpack": "~5.105.4",
|
|
51
|
+
"webpack-bundle-analyzer": "~5.2.0",
|
|
52
|
+
"webpack-cli": "~7.0.0",
|
|
54
53
|
"webpack-dev-server": "~5.2.0",
|
|
55
54
|
"webpackbar": "~7.0.0"
|
|
56
55
|
},
|