@dr.pogodin/react-utils 1.41.13 → 1.41.16
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/build/development/shared/utils/webpack.js +7 -1
- package/build/development/shared/utils/webpack.js.map +1 -1
- package/build/development/web.bundle.js +19 -114
- package/build/production/shared/utils/webpack.js +6 -1
- package/build/production/shared/utils/webpack.js.map +1 -1
- package/build/production/web.bundle.js +1 -1
- package/build/production/web.bundle.js.map +1 -1
- package/config/webpack/lib-base.js +2 -2
- package/package.json +9 -9
- package/src/shared/utils/webpack.ts +6 -1
|
@@ -27,8 +27,9 @@ function configFactory(ops) {
|
|
|
27
27
|
entry: ops.entry,
|
|
28
28
|
externals: [
|
|
29
29
|
/@babel\/runtime/,
|
|
30
|
-
'@dr.pogodin/react-global-state',
|
|
31
30
|
'@dr.pogodin/js-utils',
|
|
31
|
+
'@dr.pogodin/react-global-state',
|
|
32
|
+
'@dr.pogodin/react-helmet',
|
|
32
33
|
'@dr.pogodin/react-themes',
|
|
33
34
|
'@dr.pogodin/react-utils',
|
|
34
35
|
'axios',
|
|
@@ -39,7 +40,6 @@ function configFactory(ops) {
|
|
|
39
40
|
'qs',
|
|
40
41
|
'react',
|
|
41
42
|
/react-dom/,
|
|
42
|
-
'react-helmet-async',
|
|
43
43
|
'react-router',
|
|
44
44
|
'uuid',
|
|
45
45
|
],
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.41.
|
|
2
|
+
"version": "1.41.16",
|
|
3
3
|
"bin": {
|
|
4
4
|
"react-utils-build": "bin/build.js",
|
|
5
5
|
"react-utils-setup": "bin/setup.js"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"@dr.pogodin/react-global-state": "^0.18.1",
|
|
16
16
|
"@dr.pogodin/react-themes": "^1.8.0",
|
|
17
17
|
"@jest/environment": "^29.7.0",
|
|
18
|
-
"axios": "^1.
|
|
18
|
+
"axios": "^1.8.1",
|
|
19
19
|
"commander": "^13.1.0",
|
|
20
20
|
"compression": "^1.8.0",
|
|
21
21
|
"config": "^3.3.12",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"@types/csurf": "^1.11.5",
|
|
71
71
|
"@types/express": "^4.17.21",
|
|
72
72
|
"@types/jest": "^29.5.14",
|
|
73
|
-
"@types/lodash": "^4.17.
|
|
73
|
+
"@types/lodash": "^4.17.16",
|
|
74
74
|
"@types/morgan": "^1.9.9",
|
|
75
75
|
"@types/node-forge": "^1.3.11",
|
|
76
76
|
"@types/pretty": "^2.0.3",
|
|
@@ -83,9 +83,9 @@
|
|
|
83
83
|
"@types/webpack": "^5.28.5",
|
|
84
84
|
"autoprefixer": "^10.4.20",
|
|
85
85
|
"babel-jest": "^29.7.0",
|
|
86
|
-
"babel-loader": "^
|
|
86
|
+
"babel-loader": "^10.0.0",
|
|
87
87
|
"babel-plugin-module-resolver": "^5.0.2",
|
|
88
|
-
"core-js": "^3.
|
|
88
|
+
"core-js": "^3.41.0",
|
|
89
89
|
"css-loader": "^7.1.2",
|
|
90
90
|
"css-minimizer-webpack-plugin": "^7.0.0",
|
|
91
91
|
"eslint": "^8.57.1",
|
|
@@ -111,18 +111,18 @@
|
|
|
111
111
|
"react-refresh": "^0.16.0",
|
|
112
112
|
"regenerator-runtime": "^0.14.1",
|
|
113
113
|
"resolve-url-loader": "^5.0.0",
|
|
114
|
-
"sass": "^1.85.
|
|
114
|
+
"sass": "^1.85.1",
|
|
115
115
|
"sass-loader": "^16.0.5",
|
|
116
116
|
"sitemap": "^8.0.0",
|
|
117
117
|
"source-map-loader": "^5.0.0",
|
|
118
|
-
"stylelint": "^16.
|
|
118
|
+
"stylelint": "^16.15.0",
|
|
119
119
|
"stylelint-config-standard-scss": "^14.0.0",
|
|
120
120
|
"supertest": "^7.0.0",
|
|
121
|
-
"tsc-alias": "^1.8.
|
|
121
|
+
"tsc-alias": "^1.8.11",
|
|
122
122
|
"tstyche": "^3.5.0",
|
|
123
123
|
"typed-scss-modules": "^8.1.1",
|
|
124
124
|
"typescript": "^5.7.3",
|
|
125
|
-
"typescript-eslint": "^8.
|
|
125
|
+
"typescript-eslint": "^8.25.0",
|
|
126
126
|
"webpack": "^5.98.0",
|
|
127
127
|
"webpack-dev-middleware": "^7.4.2",
|
|
128
128
|
"webpack-hot-middleware": "^2.26.1",
|
|
@@ -13,6 +13,11 @@ export function requireWeak<Module extends NodeJS.Module>(
|
|
|
13
13
|
): Module | null {
|
|
14
14
|
if (IS_CLIENT_SIDE) return null;
|
|
15
15
|
|
|
16
|
+
// TODO: On one hand, this try/catch wrap silencing errors is bad, as it may
|
|
17
|
+
// hide legit errors, in a way difficult to notice and understand; but on the
|
|
18
|
+
// other hand it fails for some (unclear, but legit?) reasons in some environments,
|
|
19
|
+
// like during the static code generation for docs. Perhaps, something should
|
|
20
|
+
// be implemented differently here.
|
|
16
21
|
try {
|
|
17
22
|
/* eslint-disable no-eval */
|
|
18
23
|
const { resolve } = eval('require')('path');
|
|
@@ -20,7 +25,7 @@ export function requireWeak<Module extends NodeJS.Module>(
|
|
|
20
25
|
const module = eval('require')(path) as Module;
|
|
21
26
|
/* eslint-enable no-eval */
|
|
22
27
|
|
|
23
|
-
if (!('default' in module)) return module;
|
|
28
|
+
if (!('default' in module) || !module.default) return module;
|
|
24
29
|
|
|
25
30
|
const { default: def, ...named } = module;
|
|
26
31
|
|