@xfe-repo/web-app 1.5.2 → 1.6.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.
@@ -281,7 +281,7 @@ module.exports = function (webpackEnv) {
281
281
  // We placed these paths second because we want `node_modules` to "win"
282
282
  // if there are any conflicts. This matches Node resolution mechanism.
283
283
  // https://github.com/facebook/create-react-app/issues/253
284
- modules: ['node_modules', paths.appNodeModules].concat(modules.additionalModulePaths || []),
284
+ modules: [paths.appNodeModules, 'node_modules'].concat(modules.additionalModulePaths || []),
285
285
  // These are the reasonable defaults supported by the Node ecosystem.
286
286
  // We also include JSX as a common component filename extension to support
287
287
  // some tools, although we do not recommend using it, see:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xfe-repo/web-app",
3
- "version": "1.5.2",
3
+ "version": "1.6.0",
4
4
  "bin": {
5
5
  "xfe-web": "./bin/index.js"
6
6
  },
@@ -79,8 +79,8 @@
79
79
  "webpack-manifest-plugin": "^4.0.2",
80
80
  "workbox-webpack-plugin": "^7.0.0",
81
81
  "yaml": "^2.3.4",
82
- "@xfe-repo/eslint-config": "1.5.2",
83
- "@xfe-repo/typescript-config": "1.5.1"
82
+ "@xfe-repo/eslint-config": "1.6.0",
83
+ "@xfe-repo/typescript-config": "1.6.0"
84
84
  },
85
85
  "peerDependencies": {
86
86
  "react": "18.2.0",
package/scripts/dev.js CHANGED
@@ -19,6 +19,14 @@ const chalk = require("react-dev-utils/chalk");
19
19
  const webpack = require("webpack");
20
20
  const WebpackDevServer = require("webpack-dev-server");
21
21
  const clearConsole = require("react-dev-utils/clearConsole");
22
+ // modify 覆写 关闭 CRA/webpack 开发脚本的默认清屏逻辑,避免 turbo 并行任务日志被擦掉
23
+ const shouldClearConsole = process.env.XFE_WEB_CLEAR_CONSOLE === 'true'
24
+ if (shouldClearConsole) {
25
+ const clearConsolePath = require.resolve('react-dev-utils/clearConsole')
26
+ if (require.cache[clearConsolePath]) {
27
+ require.cache[clearConsolePath].exports = () => {}
28
+ }
29
+ }
22
30
  const checkRequiredFiles = require("react-dev-utils/checkRequiredFiles");
23
31
  const {
24
32
  choosePort,