@esmx/rspack 3.0.0-rc.24 → 3.0.0-rc.26

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/dist/config.mjs CHANGED
@@ -91,7 +91,7 @@ export function createRspackConfig(esmx, buildTarget, options) {
91
91
  }
92
92
  return [];
93
93
  })(),
94
- target: buildTarget === "client" ? "web" : "node22.6",
94
+ target: buildTarget === "client" ? "web" : "node24",
95
95
  mode: esmx.isProd ? "production" : "development",
96
96
  cache: !esmx.isProd
97
97
  };
@@ -39,7 +39,6 @@ import { RSPACK_LOADER } from './loader';
39
39
  * );
40
40
  * }
41
41
  * };
42
- * ```
43
42
  */
44
43
  export interface RspackHtmlAppOptions extends RspackAppOptions {
45
44
  /**
@@ -211,13 +210,13 @@ export interface RspackHtmlAppOptions extends RspackAppOptions {
211
210
  /**
212
211
  * 浏览器构建目标
213
212
  *
214
- * @default ['chrome>=87', 'edge>=88', 'firefox>=78', 'safari>=14']
213
+ * @default ['chrome>=64', 'edge>=79', 'firefox>=67', 'safari>=11.1']
215
214
  */
216
215
  web?: string[];
217
216
  /**
218
217
  * Node.js 构建目标
219
218
  *
220
- * @default ['node>=22.6']
219
+ * @default ['node>=24']
221
220
  */
222
221
  node?: string[];
223
222
  };
package/dist/html-app.mjs CHANGED
@@ -10,8 +10,8 @@ export async function createRspackHtmlApp(esmx, options) {
10
10
  options = {
11
11
  ...options,
12
12
  target: {
13
- web: ["chrome>=63", "firefox>=67", "safari>=11.1"],
14
- node: ["node>=22.6"],
13
+ web: ["chrome>=64", "edge>=79", "firefox>=67", "safari>=11.1"],
14
+ node: ["node>=24"],
15
15
  ...options?.target
16
16
  },
17
17
  css: options?.css ? options.css : esmx.isProd ? "css" : "js"
package/package.json CHANGED
@@ -51,7 +51,7 @@
51
51
  "build": "unbuild"
52
52
  },
53
53
  "engines": {
54
- "node": ">=22.11.0"
54
+ "node": ">=24"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "@esmx/core": "*",
@@ -63,8 +63,8 @@
63
63
  }
64
64
  },
65
65
  "dependencies": {
66
- "@esmx/import": "3.0.0-rc.24",
67
- "@esmx/rspack-module-link-plugin": "3.0.0-rc.24",
66
+ "@esmx/import": "3.0.0-rc.26",
67
+ "@esmx/rspack-module-link-plugin": "3.0.0-rc.26",
68
68
  "@npmcli/arborist": "^9.0.1",
69
69
  "@rspack/core": "1.4.2",
70
70
  "css-loader": "^7.1.2",
@@ -79,20 +79,20 @@
79
79
  },
80
80
  "devDependencies": {
81
81
  "@biomejs/biome": "1.9.4",
82
- "@esmx/core": "3.0.0-rc.24",
83
- "@esmx/lint": "3.0.0-rc.24",
84
- "@types/node": "22.15.18",
82
+ "@esmx/core": "3.0.0-rc.26",
83
+ "@esmx/lint": "3.0.0-rc.26",
84
+ "@types/node": "^24.0.10",
85
85
  "@types/npmcli__arborist": "^6.3.1",
86
86
  "@types/pacote": "^11.1.8",
87
87
  "@types/webpack-hot-middleware": "^2.25.9",
88
88
  "@types/webpack-node-externals": "^3.0.4",
89
- "@vitest/coverage-v8": "3.1.3",
90
- "stylelint": "16.19.1",
91
- "typescript": "5.8.2",
89
+ "@vitest/coverage-v8": "3.2.4",
90
+ "stylelint": "16.21.0",
91
+ "typescript": "5.8.3",
92
92
  "unbuild": "3.5.0",
93
- "vitest": "3.1.3"
93
+ "vitest": "3.2.4"
94
94
  },
95
- "version": "3.0.0-rc.24",
95
+ "version": "3.0.0-rc.26",
96
96
  "type": "module",
97
97
  "private": false,
98
98
  "exports": {
@@ -111,5 +111,5 @@
111
111
  "template",
112
112
  "public"
113
113
  ],
114
- "gitHead": "ef6208ea42a7105ca056ca9cd3c364d989c4d97d"
114
+ "gitHead": "2f52f94c8ac27aca32ef3148afd109d0f0470d52"
115
115
  }
package/src/config.ts CHANGED
@@ -118,7 +118,7 @@ export function createRspackConfig(
118
118
  }
119
119
  return [];
120
120
  })(),
121
- target: buildTarget === 'client' ? 'web' : 'node22.6',
121
+ target: buildTarget === 'client' ? 'web' : 'node24',
122
122
  mode: esmx.isProd ? 'production' : 'development',
123
123
  cache: !esmx.isProd
124
124
  };
package/src/html-app.ts CHANGED
@@ -50,7 +50,6 @@ import { RSPACK_LOADER } from './loader';
50
50
  * );
51
51
  * }
52
52
  * };
53
- * ```
54
53
  */
55
54
  export interface RspackHtmlAppOptions extends RspackAppOptions {
56
55
  /**
@@ -233,14 +232,14 @@ export interface RspackHtmlAppOptions extends RspackAppOptions {
233
232
  /**
234
233
  * 浏览器构建目标
235
234
  *
236
- * @default ['chrome>=87', 'edge>=88', 'firefox>=78', 'safari>=14']
235
+ * @default ['chrome>=64', 'edge>=79', 'firefox>=67', 'safari>=11.1']
237
236
  */
238
237
  web?: string[];
239
238
 
240
239
  /**
241
240
  * Node.js 构建目标
242
241
  *
243
- * @default ['node>=22.6']
242
+ * @default ['node>=24']
244
243
  */
245
244
  node?: string[];
246
245
  };
@@ -326,8 +325,8 @@ export async function createRspackHtmlApp(
326
325
  options = {
327
326
  ...options,
328
327
  target: {
329
- web: ['chrome>=63', 'firefox>=67', 'safari>=11.1'],
330
- node: ['node>=22.6'],
328
+ web: ['chrome>=64', 'edge>=79', 'firefox>=67', 'safari>=11.1'],
329
+ node: ['node>=24'],
331
330
  ...options?.target
332
331
  },
333
332
  css: options?.css ? options.css : esmx.isProd ? 'css' : 'js'