@gravity-ui/app-builder 0.29.3-beta.0 → 0.29.3

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.
@@ -105,7 +105,7 @@ async function buildDevServer(config) {
105
105
  static: staticFolder,
106
106
  setupMiddlewares(middlewares) {
107
107
  if (config.client.lazyCompilation && bundler === 'rspack') {
108
- const lazyCompilationMiddleware = core_1.rspack.experiments.lazyCompilationMiddleware(compiler);
108
+ const lazyCompilationMiddleware = core_1.rspack.experiments.lazyCompilationMiddleware(compiler, rspackConfigs[0]?.experiments?.lazyCompilation);
109
109
  return [lazyCompilationMiddleware, ...middlewares];
110
110
  }
111
111
  return middlewares;
@@ -28,6 +28,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.default = default_1;
30
30
  const path = __importStar(require("node:path"));
31
+ const fs = __importStar(require("node:fs"));
31
32
  const nodemon_1 = __importDefault(require("nodemon"));
32
33
  const signal_exit_1 = require("signal-exit");
33
34
  const rimraf_1 = require("rimraf");
@@ -39,7 +40,13 @@ async function default_1(config) {
39
40
  const shouldCompileClient = (0, utils_1.shouldCompileTarget)(config.target, 'client');
40
41
  const shouldCompileServer = (0, utils_1.shouldCompileTarget)(config.target, 'server');
41
42
  if (shouldCompileClient && shouldCompileServer) {
42
- rimraf_1.rimraf.sync(paths_1.default.appRun);
43
+ try {
44
+ fs.accessSync(paths_1.default.appRun, fs.constants.W_OK | fs.constants.X_OK); // eslint-disable-line no-bitwise
45
+ rimraf_1.rimraf.sync(paths_1.default.appRun);
46
+ }
47
+ catch (error) {
48
+ logger_1.default.warning(`Failed to remove appRun path [${paths_1.default.appRun}]: ${error}`);
49
+ }
43
50
  }
44
51
  let clientCompiled = !shouldCompileClient;
45
52
  let serverCompiled = !shouldCompileServer;
@@ -3,9 +3,9 @@ export declare function createCli(argv: string[]): {
3
3
  [x: string]: unknown;
4
4
  verbose: boolean | undefined;
5
5
  cdn: string | undefined;
6
- c: unknown;
7
6
  env: string[] | undefined;
8
7
  target: "client" | "server" | undefined;
8
+ c: unknown;
9
9
  inspect: number | undefined;
10
10
  inspectBrk: number | undefined;
11
11
  "inspect-brk": number | undefined;
@@ -31,9 +31,9 @@ export declare function createCli(argv: string[]): {
31
31
  [x: string]: unknown;
32
32
  verbose: boolean | undefined;
33
33
  cdn: string | undefined;
34
- c: unknown;
35
34
  env: string[] | undefined;
36
35
  target: "client" | "server" | undefined;
36
+ c: unknown;
37
37
  inspect: number | undefined;
38
38
  inspectBrk: number | undefined;
39
39
  "inspect-brk": number | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/app-builder",
3
- "version": "0.29.3-beta.0",
3
+ "version": "0.29.3",
4
4
  "description": "Develop and build your React client-server projects, powered by typescript and webpack",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",
@@ -70,11 +70,11 @@
70
70
  "@babel/runtime": "^7.26.0",
71
71
  "@okikio/sharedworker": "^1.0.7",
72
72
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.15",
73
- "@rsdoctor/rspack-plugin": "^1.1.7",
74
- "@rsdoctor/webpack-plugin": "^1.1.7",
75
- "@rspack/core": "1.4.2",
76
- "@rspack/dev-server": "^1.1.3",
77
- "@rspack/plugin-react-refresh": "^1.4.3",
73
+ "@rsdoctor/rspack-plugin": "^1.0.2",
74
+ "@rsdoctor/webpack-plugin": "^1.0.2",
75
+ "@rspack/core": "1.3.9",
76
+ "@rspack/dev-server": "^1.1.1",
77
+ "@rspack/plugin-react-refresh": "^1.4.1",
78
78
  "@statoscope/stats": "^5.28.1",
79
79
  "@statoscope/stats-extension-compressed": "^5.28.1",
80
80
  "@statoscope/webpack-model": "^5.29.0",