@lynx-js/rspeedy-canary 0.10.8 → 0.10.9-canary-20250826-1952fc15

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.
Files changed (32) hide show
  1. package/CHANGELOG.md +50 -40
  2. package/dist/cli/main.js +12 -73
  3. package/dist/events-fs-fs_promises-os-path-stream.js +30 -0
  4. package/dist/index.js +19 -39
  5. package/dist/node_child_process-node_events-node_fs-node_path.js +22 -0
  6. package/dist/src_cli_build_ts.js +101 -28
  7. package/dist/src_cli_commands_ts.js +4 -3
  8. package/dist/src_cli_dev_ts.js +76 -53
  9. package/dist/src_cli_exit_ts.js +12 -11
  10. package/dist/src_cli_inspect_ts.js +25 -16
  11. package/dist/src_cli_preview_ts.js +25 -16
  12. package/dist/src_config_validate_ts.js +86 -49
  13. package/dist/src_plugins_api_plugin_ts.js +2 -1
  14. package/dist/src_plugins_chunkLoading_plugin_ts.js +6 -5
  15. package/dist/src_plugins_dev_plugin_ts.js +4 -3
  16. package/dist/src_plugins_emitOnErrors_plugin_ts.js +1 -0
  17. package/dist/src_plugins_index_ts.js +3 -2
  18. package/dist/src_plugins_inspect_plugin_ts.js +16 -15
  19. package/dist/src_plugins_minify_plugin_ts.js +3 -2
  20. package/dist/src_plugins_optimization_plugin_ts.js +1 -0
  21. package/dist/src_plugins_output_plugin_ts.js +3 -2
  22. package/dist/src_plugins_resolve_plugin_ts.js +1 -0
  23. package/dist/src_plugins_rsdoctor_plugin_ts.js +3 -2
  24. package/dist/src_plugins_sourcemap_plugin_ts.js +1 -0
  25. package/dist/src_plugins_swc_plugin_ts.js +3 -2
  26. package/dist/src_plugins_target_plugin_ts.js +6 -5
  27. package/dist/src_version_ts.js +3 -2
  28. package/dist/vendors-node_modules_pnpm_chokidar_4_0_3_node_modules_chokidar_esm_index_js.js +1 -0
  29. package/dist/vendors-node_modules_pnpm_commander_13_1_0_node_modules_commander_esm_mjs.js +1 -0
  30. package/dist/vendors-node_modules_pnpm_ipaddr_js_2_2_0_node_modules_ipaddr_js_lib_ipaddr_js.js +1 -0
  31. package/dist/vendors-node_modules_pnpm_javascript-stringify_2_1_0_node_modules_javascript-stringify_dist_i-562fbc.js +1 -0
  32. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @lynx-js/rspeedy
2
2
 
3
+ ## 0.10.9-canary-20250826135439-1952fc1557e5abbdbdf4a2073fd3b6f64dd32c3c
4
+
5
+ ### Patch Changes
6
+
7
+ - Support `rspeedy build --watch` ([#1579](https://github.com/lynx-family/lynx-stack/pull/1579))
8
+
9
+ - Updated dependencies [[`1952fc1`](https://github.com/lynx-family/lynx-stack/commit/1952fc1557e5abbdbdf4a2073fd3b6f64dd32c3c)]:
10
+ - @lynx-js/chunk-loading-webpack-plugin@0.3.2-canary-20250826135439-1952fc1557e5abbdbdf4a2073fd3b6f64dd32c3c
11
+ - @lynx-js/cache-events-webpack-plugin@0.0.1
12
+
3
13
  ## 0.10.8
4
14
 
5
15
  ### Patch Changes
@@ -93,28 +103,28 @@
93
103
 
94
104
  ```ts
95
105
  type InlineChunkTestFunction = (params: {
96
- size: number
97
- name: string
98
- }) => boolean
106
+ size: number;
107
+ name: string;
108
+ }) => boolean;
99
109
 
100
- type InlineChunkTest = RegExp | InlineChunkTestFunction
110
+ type InlineChunkTest = RegExp | InlineChunkTestFunction;
101
111
 
102
112
  type InlineChunkConfig =
103
113
  | boolean
104
114
  | InlineChunkTest
105
- | { enable?: boolean | 'auto', test: InlineChunkTest }
115
+ | { enable?: boolean | "auto"; test: InlineChunkTest };
106
116
  ```
107
117
 
108
118
  ```ts
109
- import { defineConfig } from '@lynx-js/rspeedy'
119
+ import { defineConfig } from "@lynx-js/rspeedy";
110
120
 
111
121
  export default defineConfig({
112
122
  output: {
113
123
  inlineScripts: ({ name, size }) => {
114
- return name.includes('foo') && size < 1000
124
+ return name.includes("foo") && size < 1000;
115
125
  },
116
126
  },
117
- })
127
+ });
118
128
  ```
119
129
 
120
130
  - docs: remove chunks: 'all' in comments ([#1168](https://github.com/lynx-family/lynx-stack/pull/1168))
@@ -157,13 +167,13 @@
157
167
  example:
158
168
 
159
169
  ```js
160
- import { defineConfig } from '@lynx-js/rspeedy'
170
+ import { defineConfig } from "@lynx-js/rspeedy";
161
171
 
162
172
  export default defineConfig({
163
173
  output: {
164
174
  inlineScripts: false,
165
175
  },
166
- })
176
+ });
167
177
  ```
168
178
 
169
179
  - Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
@@ -183,12 +193,12 @@
183
193
  example:
184
194
 
185
195
  ```js
186
- import { defineConfig } from '@lynx-js/rspeedy'
196
+ import { defineConfig } from "@lynx-js/rspeedy";
187
197
  export default defineConfig({
188
198
  source: {
189
- preEntry: './src/polyfill.ts',
199
+ preEntry: "./src/polyfill.ts",
190
200
  },
191
- })
201
+ });
192
202
  ```
193
203
 
194
204
  - Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
@@ -199,17 +209,17 @@
199
209
 
200
210
  ```js
201
211
  export const myPlugin = {
202
- name: 'my-plugin',
212
+ name: "my-plugin",
203
213
  setup(api) {
204
- const { callerName } = api.context
214
+ const { callerName } = api.context;
205
215
 
206
- if (callerName === 'rslib') {
216
+ if (callerName === "rslib") {
207
217
  // ...
208
- } else if (callerName === 'rspeedy') {
218
+ } else if (callerName === "rspeedy") {
209
219
  // ...
210
220
  }
211
221
  },
212
- }
222
+ };
213
223
  ```
214
224
 
215
225
  - Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
@@ -232,7 +242,7 @@
232
242
  Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
233
243
 
234
244
  ```js
235
- import { defineConfig } from '@lynx-js/rspeedy'
245
+ import { defineConfig } from "@lynx-js/rspeedy";
236
246
 
237
247
  export default defineConfig({
238
248
  tools: {
@@ -242,7 +252,7 @@
242
252
  },
243
253
  },
244
254
  },
245
- })
255
+ });
246
256
  ```
247
257
 
248
258
  See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
@@ -374,12 +384,12 @@
374
384
  example:
375
385
 
376
386
  ```js
377
- import { defineConfig } from '@lynx-js/rspeedy'
387
+ import { defineConfig } from "@lynx-js/rspeedy";
378
388
  export default defineConfig({
379
389
  server: {
380
- base: '/dist',
390
+ base: "/dist",
381
391
  },
382
- })
392
+ });
383
393
  ```
384
394
 
385
395
  - Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
@@ -432,11 +442,11 @@
432
442
  You can switch to other tools by using:
433
443
 
434
444
  ```js
435
- import { defineConfig } from '@lynx-js/rspeedy'
445
+ import { defineConfig } from "@lynx-js/rspeedy";
436
446
  import {
437
447
  CssMinimizerWebpackPlugin,
438
448
  pluginCssMinimizer,
439
- } from '@rsbuild/plugin-css-minimizer'
449
+ } from "@rsbuild/plugin-css-minimizer";
440
450
 
441
451
  export default defineConfig({
442
452
  plugins: [
@@ -449,7 +459,7 @@
449
459
  },
450
460
  }),
451
461
  ],
452
- })
462
+ });
453
463
  ```
454
464
 
455
465
  See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
@@ -459,8 +469,8 @@
459
469
  You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
460
470
 
461
471
  ```js
462
- import { defineConfig } from '@lynx-js/rspeedy'
463
- import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
472
+ import { defineConfig } from "@lynx-js/rspeedy";
473
+ import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
464
474
 
465
475
  export default defineConfig({
466
476
  plugins: [
@@ -472,7 +482,7 @@
472
482
  },
473
483
  }),
474
484
  ],
475
- })
485
+ });
476
486
  ```
477
487
 
478
488
  ## 0.7.1
@@ -492,7 +502,7 @@
492
502
  You may turn it off using `output.minify.css: false`:
493
503
 
494
504
  ```js
495
- import { defineConfig } from '@lynx-js/rspeedy'
505
+ import { defineConfig } from "@lynx-js/rspeedy";
496
506
 
497
507
  export default defineConfig({
498
508
  output: {
@@ -500,18 +510,18 @@
500
510
  css: false,
501
511
  },
502
512
  },
503
- })
513
+ });
504
514
  ```
505
515
 
506
516
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
507
517
 
508
518
  ```js
509
- import { defineConfig } from '@lynx-js/rspeedy'
510
- import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
519
+ import { defineConfig } from "@lynx-js/rspeedy";
520
+ import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
511
521
 
512
522
  export default defineConfig({
513
523
  plugins: [pluginCssMinimizer()],
514
- })
524
+ });
515
525
  ```
516
526
 
517
527
  - 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
@@ -538,22 +548,22 @@
538
548
  - The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
539
549
 
540
550
  ```js
541
- import { defineConfig } from '@lynx-js/rspeedy'
551
+ import { defineConfig } from "@lynx-js/rspeedy";
542
552
 
543
553
  export default defineConfig({
544
554
  dev: {
545
555
  watchFiles: [
546
556
  {
547
- type: 'reload-server',
548
- paths: ['public/**/*.txt'],
557
+ type: "reload-server",
558
+ paths: ["public/**/*.txt"],
549
559
  },
550
560
  {
551
- type: 'reload-page',
552
- paths: ['public/**/*.json'],
561
+ type: "reload-page",
562
+ paths: ["public/**/*.json"],
553
563
  },
554
564
  ],
555
565
  },
556
- })
566
+ });
557
567
  ```
558
568
 
559
569
  - be9b003: Add `source.exclude`.
package/dist/cli/main.js CHANGED
@@ -1,21 +1,5 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE__lynx_js_cache_events_webpack_plugin_4f60358d__ from "@lynx-js/cache-events-webpack-plugin";
2
- import * as __WEBPACK_EXTERNAL_MODULE__lynx_js_chunk_loading_webpack_plugin_f5dc50b6__ from "@lynx-js/chunk-loading-webpack-plugin";
3
- import * as __WEBPACK_EXTERNAL_MODULE__lynx_js_rspeedy_register_78d0d330__ from "@lynx-js/rspeedy/register";
4
1
  import * as __WEBPACK_EXTERNAL_MODULE__rsbuild_core_1b356efc__ from "@rsbuild/core";
5
- import * as __WEBPACK_EXTERNAL_MODULE_events__ from "events";
6
- import * as __WEBPACK_EXTERNAL_MODULE_fs__ from "fs";
7
- import * as __WEBPACK_EXTERNAL_MODULE_fs_promises_400951f8__ from "fs/promises";
8
- import * as __WEBPACK_EXTERNAL_MODULE_node_child_process_27f17141__ from "node:child_process";
9
- import * as __WEBPACK_EXTERNAL_MODULE_node_events_0a6aefe7__ from "node:events";
10
- import * as __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__ from "node:fs";
11
- import * as __WEBPACK_EXTERNAL_MODULE_node_fs_promises_153e37e0__ from "node:fs/promises";
12
- import * as __WEBPACK_EXTERNAL_MODULE_node_module_ab9f2194__ from "node:module";
13
- import * as __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__ from "node:path";
14
2
  import * as __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__ from "node:process";
15
- import * as __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__ from "node:url";
16
- import * as __WEBPACK_EXTERNAL_MODULE_os__ from "os";
17
- import * as __WEBPACK_EXTERNAL_MODULE_path__ from "path";
18
- import * as __WEBPACK_EXTERNAL_MODULE_stream__ from "stream";
19
3
  var __webpack_modules__ = {
20
4
  "../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js": function(module) {
21
5
  let p = process || {}, argv = p.argv || [], env = p.env || {};
@@ -177,23 +161,23 @@ var __webpack_modules__ = {
177
161
  });
178
162
  let previousSignal = null;
179
163
  const exit_exit = (signal = 0)=>{
180
- if (null !== previousSignal) (0, debug.fF)(`graceful exit called multiple times, current: ${signal}, previous: ${previousSignal}`);
164
+ if (null !== previousSignal) (0, debug.Yz)(`graceful exit called multiple times, current: ${signal}, previous: ${previousSignal}`);
181
165
  previousSignal = signal;
182
- (0, debug.fF)(`graceful exit process with signal: ${signal}`);
166
+ (0, debug.Yz)(`graceful exit process with signal: ${signal}`);
183
167
  gracefulExit(signal);
184
168
  };
185
169
  async function exit_onExit(signal) {
186
170
  const duration = Date.now() - start;
187
- (0, debug.fF)(`exit hook fired with signal: ${signal}, duration: ${duration}`);
188
- (0, debug.fF)(`awaiting exit promises(length: ${exitPromises.length})...`);
171
+ (0, debug.Yz)(`exit hook fired with signal: ${signal}, duration: ${duration}`);
172
+ (0, debug.Yz)(`awaiting exit promises(length: ${exitPromises.length})...`);
189
173
  await Promise.allSettled(exitPromises);
190
174
  }
191
175
  },
192
176
  "./src/debug.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
193
177
  __webpack_require__.d(__webpack_exports__, {
194
- L1: ()=>isDebug,
195
- NW: ()=>debugList,
196
- fF: ()=>debug
178
+ Iv: ()=>debugList,
179
+ Yz: ()=>debug,
180
+ _o: ()=>isDebug
197
181
  });
198
182
  var _rsbuild_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("@rsbuild/core");
199
183
  var picocolors__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
@@ -219,59 +203,11 @@ var __webpack_modules__ = {
219
203
  ''
220
204
  ].concat(messages).join('\n - ')}`);
221
205
  },
222
- "@lynx-js/cache-events-webpack-plugin": function(module) {
223
- module.exports = __WEBPACK_EXTERNAL_MODULE__lynx_js_cache_events_webpack_plugin_4f60358d__;
224
- },
225
- "@lynx-js/chunk-loading-webpack-plugin": function(module) {
226
- module.exports = __WEBPACK_EXTERNAL_MODULE__lynx_js_chunk_loading_webpack_plugin_f5dc50b6__;
227
- },
228
- "@lynx-js/rspeedy/register": function(module) {
229
- module.exports = __WEBPACK_EXTERNAL_MODULE__lynx_js_rspeedy_register_78d0d330__;
230
- },
231
206
  "@rsbuild/core": function(module) {
232
207
  module.exports = __WEBPACK_EXTERNAL_MODULE__rsbuild_core_1b356efc__;
233
208
  },
234
- events: function(module) {
235
- module.exports = __WEBPACK_EXTERNAL_MODULE_events__;
236
- },
237
- fs: function(module) {
238
- module.exports = __WEBPACK_EXTERNAL_MODULE_fs__;
239
- },
240
- "fs/promises": function(module) {
241
- module.exports = __WEBPACK_EXTERNAL_MODULE_fs_promises_400951f8__;
242
- },
243
- "node:child_process": function(module) {
244
- module.exports = __WEBPACK_EXTERNAL_MODULE_node_child_process_27f17141__;
245
- },
246
- "node:events": function(module) {
247
- module.exports = __WEBPACK_EXTERNAL_MODULE_node_events_0a6aefe7__;
248
- },
249
- "node:fs": function(module) {
250
- module.exports = __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__;
251
- },
252
- "node:fs/promises": function(module) {
253
- module.exports = __WEBPACK_EXTERNAL_MODULE_node_fs_promises_153e37e0__;
254
- },
255
- "node:module": function(module) {
256
- module.exports = __WEBPACK_EXTERNAL_MODULE_node_module_ab9f2194__;
257
- },
258
- "node:path": function(module) {
259
- module.exports = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__;
260
- },
261
209
  "node:process": function(module) {
262
210
  module.exports = __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__;
263
- },
264
- "node:url": function(module) {
265
- module.exports = __WEBPACK_EXTERNAL_MODULE_node_url_e96de089__;
266
- },
267
- os: function(module) {
268
- module.exports = __WEBPACK_EXTERNAL_MODULE_os__;
269
- },
270
- path: function(module) {
271
- module.exports = __WEBPACK_EXTERNAL_MODULE_path__;
272
- },
273
- stream: function(module) {
274
- module.exports = __WEBPACK_EXTERNAL_MODULE_stream__;
275
211
  }
276
212
  };
277
213
  var __webpack_module_cache__ = {};
@@ -396,7 +332,7 @@ function initNodeEnv(argv) {
396
332
  if (!process.env['NODE_ENV']) {
397
333
  const NODE_ENV = argv.includes('dev') || argv.includes('preview') ? 'development' : 'production';
398
334
  process.env['NODE_ENV'] = NODE_ENV;
399
- (0, debug.fF)(`No NODE_ENV found, set to ${NODE_ENV}`);
335
+ (0, debug.Yz)(`No NODE_ENV found, set to ${NODE_ENV}`);
400
336
  }
401
337
  }
402
338
  async function main(argv) {
@@ -407,7 +343,10 @@ async function main(argv) {
407
343
  core_.logger.greet(` Rspeedy v${version} (Rsbuild v${rsbuildVersion}, Rspack v${rspackVersion})\n`);
408
344
  try {
409
345
  const [{ Command }, { apply }] = await Promise.all([
410
- __webpack_require__.e("vendors-node_modules_pnpm_commander_13_1_0_node_modules_commander_esm_mjs").then(__webpack_require__.bind(__webpack_require__, "../../../node_modules/.pnpm/commander@13.1.0/node_modules/commander/esm.mjs")),
346
+ Promise.all([
347
+ __webpack_require__.e("vendors-node_modules_pnpm_commander_13_1_0_node_modules_commander_esm_mjs"),
348
+ __webpack_require__.e("node_child_process-node_events-node_fs-node_path")
349
+ ]).then(__webpack_require__.bind(__webpack_require__, "../../../node_modules/.pnpm/commander@13.1.0/node_modules/commander/esm.mjs")),
411
350
  __webpack_require__.e("src_cli_commands_ts").then(__webpack_require__.bind(__webpack_require__, "./src/cli/commands.ts"))
412
351
  ]);
413
352
  apply(new Command('rspeedy')).parse(argv);
@@ -0,0 +1,30 @@
1
+ import * as __WEBPACK_EXTERNAL_MODULE_events__ from "events";
2
+ import * as __WEBPACK_EXTERNAL_MODULE_fs__ from "fs";
3
+ import * as __WEBPACK_EXTERNAL_MODULE_fs_promises_400951f8__ from "fs/promises";
4
+ import * as __WEBPACK_EXTERNAL_MODULE_os__ from "os";
5
+ import * as __WEBPACK_EXTERNAL_MODULE_path__ from "path";
6
+ import * as __WEBPACK_EXTERNAL_MODULE_stream__ from "stream";
7
+ export const __webpack_id__ = "events-fs-fs_promises-os-path-stream";
8
+ export const __webpack_ids__ = [
9
+ "events-fs-fs_promises-os-path-stream"
10
+ ];
11
+ export const __webpack_modules__ = {
12
+ events: function(module) {
13
+ module.exports = __WEBPACK_EXTERNAL_MODULE_events__;
14
+ },
15
+ fs: function(module) {
16
+ module.exports = __WEBPACK_EXTERNAL_MODULE_fs__;
17
+ },
18
+ "fs/promises": function(module) {
19
+ module.exports = __WEBPACK_EXTERNAL_MODULE_fs_promises_400951f8__;
20
+ },
21
+ os: function(module) {
22
+ module.exports = __WEBPACK_EXTERNAL_MODULE_os__;
23
+ },
24
+ path: function(module) {
25
+ module.exports = __WEBPACK_EXTERNAL_MODULE_path__;
26
+ },
27
+ stream: function(module) {
28
+ module.exports = __WEBPACK_EXTERNAL_MODULE_stream__;
29
+ }
30
+ };
package/dist/index.js CHANGED
@@ -1,10 +1,5 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE__lynx_js_cache_events_webpack_plugin_4f60358d__ from "@lynx-js/cache-events-webpack-plugin";
2
- import * as __WEBPACK_EXTERNAL_MODULE__lynx_js_chunk_loading_webpack_plugin_f5dc50b6__ from "@lynx-js/chunk-loading-webpack-plugin";
3
1
  import * as __WEBPACK_EXTERNAL_MODULE__rsbuild_core_1b356efc__ from "@rsbuild/core";
4
- import * as __WEBPACK_EXTERNAL_MODULE_node_fs_promises_153e37e0__ from "node:fs/promises";
5
- import * as __WEBPACK_EXTERNAL_MODULE_node_module_ab9f2194__ from "node:module";
6
2
  import * as __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__ from "node:path";
7
- import * as __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__ from "node:process";
8
3
  import node_fs from "node:fs";
9
4
  import { pathToFileURL } from "node:url";
10
5
  import { register } from "@lynx-js/rspeedy/register";
@@ -77,9 +72,9 @@ var __webpack_modules__ = {
77
72
  },
78
73
  "./src/debug.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
79
74
  __webpack_require__.d(__webpack_exports__, {
80
- L1: ()=>isDebug,
81
- NW: ()=>debugList,
82
- fF: ()=>debug
75
+ Iv: ()=>debugList,
76
+ Yz: ()=>debug,
77
+ _o: ()=>isDebug
83
78
  });
84
79
  var _rsbuild_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("@rsbuild/core");
85
80
  var picocolors__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
@@ -107,37 +102,22 @@ var __webpack_modules__ = {
107
102
  },
108
103
  "./src/version.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
109
104
  __webpack_require__.d(__webpack_exports__, {
110
- Q0: ()=>core_.version,
111
- _A: ()=>rspackVersion,
112
- i8: ()=>version
105
+ f3: ()=>rspackVersion,
106
+ rE: ()=>version,
107
+ y3: ()=>core_.version
113
108
  });
114
109
  var core_ = __webpack_require__("@rsbuild/core");
115
110
  var package_namespaceObject = {
116
- i8: "0.10.8"
111
+ rE: "0.10.8"
117
112
  };
118
- const version = package_namespaceObject.i8;
113
+ const version = package_namespaceObject.rE;
119
114
  const rspackVersion = core_.rspack.rspackVersion;
120
115
  },
121
- "@lynx-js/cache-events-webpack-plugin": function(module) {
122
- module.exports = __WEBPACK_EXTERNAL_MODULE__lynx_js_cache_events_webpack_plugin_4f60358d__;
123
- },
124
- "@lynx-js/chunk-loading-webpack-plugin": function(module) {
125
- module.exports = __WEBPACK_EXTERNAL_MODULE__lynx_js_chunk_loading_webpack_plugin_f5dc50b6__;
126
- },
127
116
  "@rsbuild/core": function(module) {
128
117
  module.exports = __WEBPACK_EXTERNAL_MODULE__rsbuild_core_1b356efc__;
129
118
  },
130
- "node:fs/promises": function(module) {
131
- module.exports = __WEBPACK_EXTERNAL_MODULE_node_fs_promises_153e37e0__;
132
- },
133
- "node:module": function(module) {
134
- module.exports = __WEBPACK_EXTERNAL_MODULE_node_module_ab9f2194__;
135
- },
136
119
  "node:path": function(module) {
137
120
  module.exports = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__;
138
- },
139
- "node:process": function(module) {
140
- module.exports = __WEBPACK_EXTERNAL_MODULE_node_process_786449bf__;
141
121
  }
142
122
  };
143
123
  var __webpack_module_cache__ = {};
@@ -271,7 +251,7 @@ function applyDefaultRspeedyConfig(config) {
271
251
  inlineScripts: !enableChunkSplitting
272
252
  },
273
253
  performance: {
274
- profile: (0, debug.L1)() ? true : void 0
254
+ profile: (0, debug._o)() ? true : void 0
275
255
  },
276
256
  tools: {
277
257
  rsdoctor: {
@@ -297,13 +277,13 @@ function getFilename(filename) {
297
277
  const DEFAULT_ENTRY = './src/index.js';
298
278
  function toRsbuildEntry(entry) {
299
279
  if (void 0 === entry) {
300
- (0, debug.fF)(`Using default entry ${DEFAULT_ENTRY}`);
280
+ (0, debug.Yz)(`Using default entry ${DEFAULT_ENTRY}`);
301
281
  return {
302
282
  main: DEFAULT_ENTRY
303
283
  };
304
284
  }
305
285
  if (Array.isArray(entry) || 'string' == typeof entry) {
306
- (0, debug.fF)(()=>`Using single entry ${[
286
+ (0, debug.Yz)(()=>`Using single entry ${[
307
287
  ''
308
288
  ].concat(entry).join('\n - ')}`);
309
289
  return {
@@ -312,7 +292,7 @@ function toRsbuildEntry(entry) {
312
292
  }
313
293
  return Object.fromEntries(Object.entries(entry).map(([key, value])=>{
314
294
  if (Array.isArray(value) || 'string' == typeof value) {
315
- (0, debug.NW)(`Using multiple entries - ${key}`, value);
295
+ (0, debug.Iv)(`Using multiple entries - ${key}`, value);
316
296
  return [
317
297
  key,
318
298
  {
@@ -320,7 +300,7 @@ function toRsbuildEntry(entry) {
320
300
  }
321
301
  ];
322
302
  }
323
- (0, debug.NW)(`Using multiple entries - ${key}`, value.import ?? DEFAULT_ENTRY);
303
+ (0, debug.Iv)(`Using multiple entries - ${key}`, value.import ?? DEFAULT_ENTRY);
324
304
  if (void 0 === value.import) return [
325
305
  key,
326
306
  {
@@ -448,7 +428,7 @@ var picocolors = __webpack_require__("../../../node_modules/.pnpm/picocolors@1.1
448
428
  var picocolors_default = /*#__PURE__*/ __webpack_require__.n(picocolors);
449
429
  const resolveConfigPath = (root, customConfig)=>{
450
430
  if (customConfig) {
451
- (0, debug.fF)(`load custom config file ${customConfig} from ${root}`);
431
+ (0, debug.Yz)(`load custom config file ${customConfig} from ${root}`);
452
432
  const customConfigPath = (0, external_node_path_.isAbsolute)(customConfig) ? customConfig : (0, external_node_path_.join)(root, customConfig);
453
433
  if (node_fs.existsSync(customConfigPath)) return customConfigPath;
454
434
  throw new Error(`Cannot find config file: ${picocolors_default().dim(customConfigPath)}`);
@@ -460,10 +440,10 @@ const resolveConfigPath = (root, customConfig)=>{
460
440
  'lynx.config.mjs'
461
441
  ];
462
442
  for (const file of CONFIG_FILES){
463
- (0, debug.fF)(`load default config file ${file} from ${root}`);
443
+ (0, debug.Yz)(`load default config file ${file} from ${root}`);
464
444
  const configFile = (0, external_node_path_.join)(root, file);
465
445
  if (node_fs.existsSync(configFile)) {
466
- (0, debug.fF)(`default config ${configFile} found`);
446
+ (0, debug.Yz)(`default config ${configFile} found`);
467
447
  return configFile;
468
448
  }
469
449
  }
@@ -520,8 +500,8 @@ function isDeno() {
520
500
  }
521
501
  var version = __webpack_require__("./src/version.ts");
522
502
  var __webpack_exports__logger = core_.logger;
523
- var __webpack_exports__rsbuildVersion = version.Q0;
503
+ var __webpack_exports__rsbuildVersion = version.y3;
524
504
  var __webpack_exports__rspack = core_.rspack;
525
- var __webpack_exports__rspackVersion = version._A;
526
- var __webpack_exports__version = version.i8;
505
+ var __webpack_exports__rspackVersion = version.f3;
506
+ var __webpack_exports__version = version.rE;
527
507
  export { createRspeedy, defineConfig, loadConfig, mergeRspeedyConfig, __webpack_exports__logger as logger, __webpack_exports__rsbuildVersion as rsbuildVersion, __webpack_exports__rspack as rspack, __webpack_exports__rspackVersion as rspackVersion, __webpack_exports__version as version };
@@ -0,0 +1,22 @@
1
+ import * as __WEBPACK_EXTERNAL_MODULE_node_child_process_27f17141__ from "node:child_process";
2
+ import * as __WEBPACK_EXTERNAL_MODULE_node_events_0a6aefe7__ from "node:events";
3
+ import * as __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__ from "node:fs";
4
+ import * as __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__ from "node:path";
5
+ export const __webpack_id__ = "node_child_process-node_events-node_fs-node_path";
6
+ export const __webpack_ids__ = [
7
+ "node_child_process-node_events-node_fs-node_path"
8
+ ];
9
+ export const __webpack_modules__ = {
10
+ "node:child_process": function(module) {
11
+ module.exports = __WEBPACK_EXTERNAL_MODULE_node_child_process_27f17141__;
12
+ },
13
+ "node:events": function(module) {
14
+ module.exports = __WEBPACK_EXTERNAL_MODULE_node_events_0a6aefe7__;
15
+ },
16
+ "node:fs": function(module) {
17
+ module.exports = __WEBPACK_EXTERNAL_MODULE_node_fs_5ea92f0c__;
18
+ },
19
+ "node:path": function(module) {
20
+ module.exports = __WEBPACK_EXTERNAL_MODULE_node_path_c5b9b54f__;
21
+ }
22
+ };