@xh/hoist-dev-utils 6.1.0 → 6.1.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 -9
- package/package.json +23 -23
package/configureWebpack.js
CHANGED
|
@@ -29,7 +29,7 @@ const _ = require('lodash'),
|
|
|
29
29
|
// this script locally to debug via `yarn link`.
|
|
30
30
|
let hoistReactPkg, reactPkg;
|
|
31
31
|
try {hoistReactPkg = require('@xh/hoist/package')} catch (e) {hoistReactPkg = {version: 'NOT_FOUND'}}
|
|
32
|
-
try {reactPkg = require('react
|
|
32
|
+
try {reactPkg = require('react')} catch (e) {reactPkg = {version: 'NOT_FOUND'}}
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
35
|
* Consolidated Webpack configuration for both dev-time and production builds of Hoist React web
|
|
@@ -464,14 +464,16 @@ async function configureWebpack(env) {
|
|
|
464
464
|
|
|
465
465
|
// Support our current decorator syntax, for MobX and Hoist decorators.
|
|
466
466
|
// See notes @ https://babeljs.io/docs/en/babel-plugin-proposal-decorators#legacy
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
// Must
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
467
|
+
// and https://mobx.js.org/enabling-decorators.html#babel-7
|
|
468
|
+
['@babel/plugin-proposal-decorators', {version: 'legacy'}],
|
|
469
|
+
|
|
470
|
+
// Support class-level fields.
|
|
471
|
+
// Must come after decorators plugin as per Babel docs linked above.
|
|
472
|
+
['@babel/plugin-proposal-class-properties'],
|
|
473
|
+
|
|
474
|
+
// Support private methods + properties.
|
|
475
|
+
['@babel/plugin-proposal-private-methods'],
|
|
476
|
+
['@babel/plugin-proposal-private-property-in-object'],
|
|
475
477
|
|
|
476
478
|
// Support `let x = foo?.bar`.
|
|
477
479
|
['@babel/plugin-proposal-optional-chaining'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist-dev-utils",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.2",
|
|
4
4
|
"description": "Utilities for configuring builds of Hoist-React client applications.",
|
|
5
5
|
"repository": "github:xh/hoist-dev-utils",
|
|
6
6
|
"homepage": "https://github.com/xh/hoist-dev-utils",
|
|
@@ -11,42 +11,42 @@
|
|
|
11
11
|
"configureWebpack.js"
|
|
12
12
|
],
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@babel/core": "^7.
|
|
15
|
-
"@babel/plugin-proposal-decorators": "^7.
|
|
14
|
+
"@babel/core": "^7.21",
|
|
15
|
+
"@babel/plugin-proposal-decorators": "^7.21",
|
|
16
16
|
"@babel/preset-env": "^7.20",
|
|
17
17
|
"@babel/preset-react": "^7.18",
|
|
18
|
-
"@babel/preset-typescript": "^7.
|
|
18
|
+
"@babel/preset-typescript": "^7.21",
|
|
19
19
|
"@cerner/duplicate-package-checker-webpack-plugin": "~2.3.0",
|
|
20
|
-
"@types/lodash": "^4.0
|
|
21
|
-
"@types/react": "^18.0
|
|
22
|
-
"@xh/eslint-config": "^5.0
|
|
23
|
-
"autoprefixer": "~10.4.
|
|
24
|
-
"babel-loader": "~9.1.
|
|
20
|
+
"@types/lodash": "^4.0",
|
|
21
|
+
"@types/react": "^18.0",
|
|
22
|
+
"@xh/eslint-config": "^5.0",
|
|
23
|
+
"autoprefixer": "~10.4.14",
|
|
24
|
+
"babel-loader": "~9.1.2",
|
|
25
25
|
"babel-plugin-transform-imports": "~2.0.0",
|
|
26
26
|
"case-sensitive-paths-webpack-plugin": "~2.4.0",
|
|
27
|
-
"changelog-parser": "~
|
|
27
|
+
"changelog-parser": "~3.0.1",
|
|
28
28
|
"clean-webpack-plugin": "~4.0.0",
|
|
29
29
|
"copy-webpack-plugin": "~11.0.0",
|
|
30
|
-
"css-loader": "~6.7.
|
|
30
|
+
"css-loader": "~6.7.3",
|
|
31
31
|
"file-loader": "~6.2.0",
|
|
32
32
|
"html-webpack-plugin": "~5.5.0",
|
|
33
33
|
"html-webpack-tags-plugin": "~3.0.2",
|
|
34
34
|
"lodash": "~4.17.21",
|
|
35
|
-
"mini-css-extract-plugin": "~2.7.
|
|
36
|
-
"postcss": "~8.4.
|
|
35
|
+
"mini-css-extract-plugin": "~2.7.5",
|
|
36
|
+
"postcss": "~8.4.21",
|
|
37
37
|
"postcss-flexbugs-fixes": "~5.0.2",
|
|
38
|
-
"postcss-loader": "~7.0
|
|
39
|
-
"rimraf": "~
|
|
40
|
-
"sass": "~1.
|
|
41
|
-
"sass-loader": "~13.2.
|
|
38
|
+
"postcss-loader": "~7.1.0",
|
|
39
|
+
"rimraf": "~4.4.0",
|
|
40
|
+
"sass": "~1.59.3",
|
|
41
|
+
"sass-loader": "~13.2.1",
|
|
42
42
|
"sass-material-colors": "~0.0.5",
|
|
43
|
-
"style-loader": "~3.3.
|
|
44
|
-
"terser-webpack-plugin": "~5.3.
|
|
43
|
+
"style-loader": "~3.3.2",
|
|
44
|
+
"terser-webpack-plugin": "~5.3.7",
|
|
45
45
|
"url-loader": "~4.1.1",
|
|
46
|
-
"webpack": "~5.
|
|
47
|
-
"webpack-bundle-analyzer": "~4.
|
|
48
|
-
"webpack-cli": "~5.0.
|
|
49
|
-
"webpack-dev-server": "~4.
|
|
46
|
+
"webpack": "~5.76.3",
|
|
47
|
+
"webpack-bundle-analyzer": "~4.8.0",
|
|
48
|
+
"webpack-cli": "~5.0.1",
|
|
49
|
+
"webpack-dev-server": "~4.13.1",
|
|
50
50
|
"webpackbar": "~5.0.2"
|
|
51
51
|
}
|
|
52
52
|
}
|