@xh/hoist-dev-utils 6.0.0-SNAPSHOT.1658165775446 → 6.0.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.
@@ -262,6 +262,9 @@ async function configureWebpack(env) {
262
262
  devtool = sourceMaps;
263
263
  }
264
264
 
265
+ // Ignore DefinePlugin warnings on mis-matched process.env when reactProdMode enabled during local development.
266
+ const ignoreWarnings = (prodBuild !== reactProdMode) ? [{message: /Conflicting values for 'process.env.NODE_ENV'/}] : [];
267
+
265
268
  // Parse CHANGELOG.md and write to tmp .json file, if requested. Write fallback file if disabled
266
269
  // or parsing fails, then install a resolver alias to support import from XH.changelogService.
267
270
  const tmpPath = path.resolve(basePath, 'node_modules', '.xhtmp'),
@@ -580,7 +583,7 @@ async function configureWebpack(env) {
580
583
 
581
584
  // Inject global constants at compile time.
582
585
  new webpack.DefinePlugin({
583
- 'process.env': {NODE_ENV: JSON.stringify(process.env.REACT_NODE_ENV)},
586
+ 'process.env.NODE_ENV': JSON.stringify(process.env.REACT_NODE_ENV),
584
587
  xhAppCode: JSON.stringify(appCode),
585
588
  xhAppName: JSON.stringify(appName),
586
589
  xhAppVersion: JSON.stringify(appVersion),
@@ -676,6 +679,8 @@ async function configureWebpack(env) {
676
679
 
677
680
  devtool: devtool,
678
681
 
682
+ ignoreWarnings: ignoreWarnings,
683
+
679
684
  // Inline dev-time configuration for webpack-dev-server.
680
685
  devServer: prodBuild ? undefined : {
681
686
  https: devHttps,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist-dev-utils",
3
- "version": "6.0.0-SNAPSHOT.1658165775446",
3
+ "version": "6.0.0",
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",
@@ -18,7 +18,7 @@
18
18
  "@cerner/duplicate-package-checker-webpack-plugin": "~2.3.0",
19
19
  "@types/lodash": "^4.0.0",
20
20
  "@types/react": "^17.0.0",
21
- "@xh/eslint-config": "~4.0.0",
21
+ "@xh/eslint-config": "~4.0.1",
22
22
  "autoprefixer": "~10.4.7",
23
23
  "babel-loader": "~8.2.5",
24
24
  "babel-plugin-transform-imports": "~2.0.0",