@xh/hoist-dev-utils 15.0.0 → 15.0.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.
- package/configureWebpack.js +11 -6
- package/package.json +19 -19
package/configureWebpack.js
CHANGED
|
@@ -282,6 +282,7 @@ async function configureWebpack(env) {
|
|
|
282
282
|
// Also ensure a single instance of ag-Grid when Hoist is inline, needed to support use of
|
|
283
283
|
// `useGridMenuItem` hook.
|
|
284
284
|
resolveAliases['ag-grid-react'] = path.resolve('./node_modules/ag-grid-react');
|
|
285
|
+
resolveAliases['ag-grid-community'] = path.resolve('./node_modules/ag-grid-community');
|
|
285
286
|
}
|
|
286
287
|
|
|
287
288
|
// When running inline, resolve inline Hoist's own node_modules package so we can tell Babel to exclude
|
|
@@ -411,12 +412,16 @@ async function configureWebpack(env) {
|
|
|
411
412
|
// https://webpack.js.org/configuration/optimization/#optimizationremoveavailablemodules)
|
|
412
413
|
removeAvailableModules: false,
|
|
413
414
|
|
|
414
|
-
//
|
|
415
|
-
//
|
|
416
|
-
//
|
|
417
|
-
//
|
|
418
|
-
// the
|
|
419
|
-
|
|
415
|
+
// Disable package.json `sideEffects` based module pruning. When enabled ('flag' in
|
|
416
|
+
// v15.0.0), webpack elides hoist-react's barrel index modules and rewrites consumer
|
|
417
|
+
// imports to the underlying deep modules. Hoist-react's module graph is heavily
|
|
418
|
+
// circular and relies on those barrels evaluating in source order to initialize
|
|
419
|
+
// safely - without them, evaluation order follows the app's own import graph, and
|
|
420
|
+
// some orderings hit a class decorator or `extends` before its binding initializes,
|
|
421
|
+
// throwing `Cannot access '...' before initialization` (naming a hoist-react export)
|
|
422
|
+
// at startup. Must remain disabled until hoist-react's internal cycles are
|
|
423
|
+
// restructured to be ordering-independent - see hoist-react #4640.
|
|
424
|
+
sideEffects: false,
|
|
420
425
|
|
|
421
426
|
// Produce chunks for any shared imports across JS apps.
|
|
422
427
|
splitChunks: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist-dev-utils",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.2",
|
|
4
4
|
"description": "Utilities for configuring builds of Hoist-React client applications.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,41 +18,41 @@
|
|
|
18
18
|
"node": ">=22.15.0"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@babel/core": "^7.
|
|
22
|
-
"@babel/plugin-proposal-decorators": "^7.
|
|
23
|
-
"@babel/plugin-transform-typescript": "^7.
|
|
24
|
-
"@babel/preset-env": "^7.
|
|
25
|
-
"@babel/preset-react": "^7.
|
|
21
|
+
"@babel/core": "^7.29.7",
|
|
22
|
+
"@babel/plugin-proposal-decorators": "^7.29.7",
|
|
23
|
+
"@babel/plugin-transform-typescript": "^7.29.7",
|
|
24
|
+
"@babel/preset-env": "^7.29.7",
|
|
25
|
+
"@babel/preset-react": "^7.29.7",
|
|
26
26
|
"@types/lodash": "^4.17.25",
|
|
27
27
|
"@types/react": "^19.2.18",
|
|
28
28
|
"@types/react-dom": "^19.2.5",
|
|
29
29
|
"@xh/eslint-config": "^8.0.1",
|
|
30
|
-
"autoprefixer": "~10.5.
|
|
30
|
+
"autoprefixer": "~10.5.4",
|
|
31
31
|
"babel-loader": "~10.1.1",
|
|
32
32
|
"babel-plugin-transform-imports": "~2.0.0",
|
|
33
33
|
"case-sensitive-paths-webpack-plugin": "~2.4.0",
|
|
34
34
|
"changelog-parser": "~4.1.0",
|
|
35
35
|
"compression-webpack-plugin": "~12.0.0",
|
|
36
36
|
"copy-webpack-plugin": "~14.0.0",
|
|
37
|
-
"css-loader": "~7.1.
|
|
38
|
-
"html-webpack-plugin": "~5.6.
|
|
37
|
+
"css-loader": "~7.1.5",
|
|
38
|
+
"html-webpack-plugin": "~5.6.8",
|
|
39
39
|
"lodash": "^4.18.1",
|
|
40
|
-
"mini-css-extract-plugin": "~2.10.
|
|
40
|
+
"mini-css-extract-plugin": "~2.10.2",
|
|
41
41
|
"postcss": "^8.5.26",
|
|
42
|
-
"postcss-loader": "~8.2.
|
|
43
|
-
"sass-embedded": "~1.103.
|
|
44
|
-
"sass-loader": "~17.0.
|
|
42
|
+
"postcss-loader": "~8.2.1",
|
|
43
|
+
"sass-embedded": "~1.103.1",
|
|
44
|
+
"sass-loader": "~17.0.1",
|
|
45
45
|
"style-loader": "~4.0.0",
|
|
46
|
-
"terser-webpack-plugin": "~5.6.
|
|
47
|
-
"type-fest": "^5.
|
|
48
|
-
"webpack": "~5.110.
|
|
49
|
-
"webpack-bundle-analyzer": "~5.3.
|
|
50
|
-
"webpack-cli": "~7.2.
|
|
46
|
+
"terser-webpack-plugin": "~5.6.1",
|
|
47
|
+
"type-fest": "^5.9.0",
|
|
48
|
+
"webpack": "~5.110.2",
|
|
49
|
+
"webpack-bundle-analyzer": "~5.3.2",
|
|
50
|
+
"webpack-cli": "~7.2.3",
|
|
51
51
|
"webpack-dev-server": "~6.0.0",
|
|
52
52
|
"webpackbar": "~7.0.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"prettier": "^3.9.6"
|
|
56
56
|
},
|
|
57
|
-
"packageManager": "pnpm@
|
|
57
|
+
"packageManager": "pnpm@12.2.1+sha512.f55ca68aacb9eb5ab69c66f828a98af89a32286703aef1f8da131ca7eab4d677f34bfa85e186467a919c0799df8b6f4aa240f7dc2919b33b3273190104162616"
|
|
58
58
|
}
|