@lynx-js/rspeedy-canary 0.11.6-canary-20251011-820b3f9a → 0.11.6

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/CHANGELOG.md CHANGED
@@ -1,9 +1,11 @@
1
1
  # @lynx-js/rspeedy
2
2
 
3
- ## 0.11.6-canary-20251011144117-820b3f9ae7d0e016492a94c6d0769bec5e1a7e8b
3
+ ## 0.11.6
4
4
 
5
5
  ### Patch Changes
6
6
 
7
+ - Should apply `dev.hmr` and `dev.liveReload` to Rsbuild config. ([#1882](https://github.com/lynx-family/lynx-stack/pull/1882))
8
+
7
9
  - Support CLI flag `--root` to specify the root of the project. ([#1836](https://github.com/lynx-family/lynx-stack/pull/1836))
8
10
 
9
11
  ## 0.11.5
@@ -43,11 +45,11 @@
43
45
  - Support `command` and `env` parameters in the function exported by `lynx.config.js`. ([#1669](https://github.com/lynx-family/lynx-stack/pull/1669))
44
46
 
45
47
  ```js
46
- import { defineConfig } from "@lynx-js/rspeedy";
48
+ import { defineConfig } from '@lynx-js/rspeedy'
47
49
 
48
50
  export default defineConfig(({ command, env }) => {
49
- const isBuild = command === "build";
50
- const isTest = env === "test";
51
+ const isBuild = command === 'build'
52
+ const isTest = env === 'test'
51
53
 
52
54
  return {
53
55
  output: {
@@ -56,8 +58,8 @@
56
58
  performance: {
57
59
  buildCache: isBuild,
58
60
  },
59
- };
60
- });
61
+ }
62
+ })
61
63
  ```
62
64
 
63
65
  - Support `resolve.dedupe`. ([#1671](https://github.com/lynx-family/lynx-stack/pull/1671))
@@ -65,30 +67,30 @@
65
67
  This is useful when having multiple duplicated packages in the bundle:
66
68
 
67
69
  ```js
68
- import { defineConfig } from "@lynx-js/rspeedy";
70
+ import { defineConfig } from '@lynx-js/rspeedy'
69
71
 
70
72
  export default defineConfig({
71
73
  resolve: {
72
- dedupe: ["tslib"],
74
+ dedupe: ['tslib'],
73
75
  },
74
- });
76
+ })
75
77
  ```
76
78
 
77
79
  - Support `resolve.aliasStrategy` for controlling priority between `tsconfig.json` paths and `resolve.alias` ([#1722](https://github.com/lynx-family/lynx-stack/pull/1722))
78
80
 
79
81
  ```js
80
- import { defineConfig } from "@lynx-js/rspeedy";
82
+ import { defineConfig } from '@lynx-js/rspeedy'
81
83
 
82
84
  export default defineConfig({
83
85
  resolve: {
84
86
  alias: {
85
- "@": "./src",
87
+ '@': './src',
86
88
  },
87
89
  // 'prefer-tsconfig' (default): tsconfig.json paths take priority
88
90
  // 'prefer-alias': resolve.alias takes priority
89
- aliasStrategy: "prefer-alias",
91
+ aliasStrategy: 'prefer-alias',
90
92
  },
91
- });
93
+ })
92
94
  ```
93
95
 
94
96
  - Bump Rsbuild v1.5.4 with Rspack v1.5.2. ([#1644](https://github.com/lynx-family/lynx-stack/pull/1644))
@@ -108,7 +110,7 @@
108
110
  - Add `output.dataUriLimit.*` for fine-grained control of asset inlining. ([#1648](https://github.com/lynx-family/lynx-stack/pull/1648))
109
111
 
110
112
  ```js
111
- import { defineConfig } from "@lynx-js/rspeedy";
113
+ import { defineConfig } from '@lynx-js/rspeedy'
112
114
 
113
115
  export default defineConfig({
114
116
  output: {
@@ -117,7 +119,7 @@
117
119
  media: 0,
118
120
  },
119
121
  },
120
- });
122
+ })
121
123
  ```
122
124
 
123
125
  ## 0.11.0
@@ -237,28 +239,28 @@
237
239
 
238
240
  ```ts
239
241
  type InlineChunkTestFunction = (params: {
240
- size: number;
241
- name: string;
242
- }) => boolean;
242
+ size: number
243
+ name: string
244
+ }) => boolean
243
245
 
244
- type InlineChunkTest = RegExp | InlineChunkTestFunction;
246
+ type InlineChunkTest = RegExp | InlineChunkTestFunction
245
247
 
246
248
  type InlineChunkConfig =
247
249
  | boolean
248
250
  | InlineChunkTest
249
- | { enable?: boolean | "auto"; test: InlineChunkTest };
251
+ | { enable?: boolean | 'auto', test: InlineChunkTest }
250
252
  ```
251
253
 
252
254
  ```ts
253
- import { defineConfig } from "@lynx-js/rspeedy";
255
+ import { defineConfig } from '@lynx-js/rspeedy'
254
256
 
255
257
  export default defineConfig({
256
258
  output: {
257
259
  inlineScripts: ({ name, size }) => {
258
- return name.includes("foo") && size < 1000;
260
+ return name.includes('foo') && size < 1000
259
261
  },
260
262
  },
261
- });
263
+ })
262
264
  ```
263
265
 
264
266
  - docs: remove chunks: 'all' in comments ([#1168](https://github.com/lynx-family/lynx-stack/pull/1168))
@@ -301,13 +303,13 @@
301
303
  example:
302
304
 
303
305
  ```js
304
- import { defineConfig } from "@lynx-js/rspeedy";
306
+ import { defineConfig } from '@lynx-js/rspeedy'
305
307
 
306
308
  export default defineConfig({
307
309
  output: {
308
310
  inlineScripts: false,
309
311
  },
310
- });
312
+ })
311
313
  ```
312
314
 
313
315
  - Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
@@ -327,12 +329,12 @@
327
329
  example:
328
330
 
329
331
  ```js
330
- import { defineConfig } from "@lynx-js/rspeedy";
332
+ import { defineConfig } from '@lynx-js/rspeedy'
331
333
  export default defineConfig({
332
334
  source: {
333
- preEntry: "./src/polyfill.ts",
335
+ preEntry: './src/polyfill.ts',
334
336
  },
335
- });
337
+ })
336
338
  ```
337
339
 
338
340
  - Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
@@ -343,17 +345,17 @@
343
345
 
344
346
  ```js
345
347
  export const myPlugin = {
346
- name: "my-plugin",
348
+ name: 'my-plugin',
347
349
  setup(api) {
348
- const { callerName } = api.context;
350
+ const { callerName } = api.context
349
351
 
350
- if (callerName === "rslib") {
352
+ if (callerName === 'rslib') {
351
353
  // ...
352
- } else if (callerName === "rspeedy") {
354
+ } else if (callerName === 'rspeedy') {
353
355
  // ...
354
356
  }
355
357
  },
356
- };
358
+ }
357
359
  ```
358
360
 
359
361
  - Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
@@ -376,7 +378,7 @@
376
378
  Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
377
379
 
378
380
  ```js
379
- import { defineConfig } from "@lynx-js/rspeedy";
381
+ import { defineConfig } from '@lynx-js/rspeedy'
380
382
 
381
383
  export default defineConfig({
382
384
  tools: {
@@ -386,7 +388,7 @@
386
388
  },
387
389
  },
388
390
  },
389
- });
391
+ })
390
392
  ```
391
393
 
392
394
  See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
@@ -518,12 +520,12 @@
518
520
  example:
519
521
 
520
522
  ```js
521
- import { defineConfig } from "@lynx-js/rspeedy";
523
+ import { defineConfig } from '@lynx-js/rspeedy'
522
524
  export default defineConfig({
523
525
  server: {
524
- base: "/dist",
526
+ base: '/dist',
525
527
  },
526
- });
528
+ })
527
529
  ```
528
530
 
529
531
  - Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
@@ -576,11 +578,11 @@
576
578
  You can switch to other tools by using:
577
579
 
578
580
  ```js
579
- import { defineConfig } from "@lynx-js/rspeedy";
581
+ import { defineConfig } from '@lynx-js/rspeedy'
580
582
  import {
581
583
  CssMinimizerWebpackPlugin,
582
584
  pluginCssMinimizer,
583
- } from "@rsbuild/plugin-css-minimizer";
585
+ } from '@rsbuild/plugin-css-minimizer'
584
586
 
585
587
  export default defineConfig({
586
588
  plugins: [
@@ -593,7 +595,7 @@
593
595
  },
594
596
  }),
595
597
  ],
596
- });
598
+ })
597
599
  ```
598
600
 
599
601
  See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
@@ -603,8 +605,8 @@
603
605
  You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
604
606
 
605
607
  ```js
606
- import { defineConfig } from "@lynx-js/rspeedy";
607
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
608
+ import { defineConfig } from '@lynx-js/rspeedy'
609
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
608
610
 
609
611
  export default defineConfig({
610
612
  plugins: [
@@ -616,7 +618,7 @@
616
618
  },
617
619
  }),
618
620
  ],
619
- });
621
+ })
620
622
  ```
621
623
 
622
624
  ## 0.7.1
@@ -636,7 +638,7 @@
636
638
  You may turn it off using `output.minify.css: false`:
637
639
 
638
640
  ```js
639
- import { defineConfig } from "@lynx-js/rspeedy";
641
+ import { defineConfig } from '@lynx-js/rspeedy'
640
642
 
641
643
  export default defineConfig({
642
644
  output: {
@@ -644,18 +646,18 @@
644
646
  css: false,
645
647
  },
646
648
  },
647
- });
649
+ })
648
650
  ```
649
651
 
650
652
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
651
653
 
652
654
  ```js
653
- import { defineConfig } from "@lynx-js/rspeedy";
654
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
655
+ import { defineConfig } from '@lynx-js/rspeedy'
656
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
655
657
 
656
658
  export default defineConfig({
657
659
  plugins: [pluginCssMinimizer()],
658
- });
660
+ })
659
661
  ```
660
662
 
661
663
  - 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
@@ -682,22 +684,22 @@
682
684
  - The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
683
685
 
684
686
  ```js
685
- import { defineConfig } from "@lynx-js/rspeedy";
687
+ import { defineConfig } from '@lynx-js/rspeedy'
686
688
 
687
689
  export default defineConfig({
688
690
  dev: {
689
691
  watchFiles: [
690
692
  {
691
- type: "reload-server",
692
- paths: ["public/**/*.txt"],
693
+ type: 'reload-server',
694
+ paths: ['public/**/*.txt'],
693
695
  },
694
696
  {
695
- type: "reload-page",
696
- paths: ["public/**/*.json"],
697
+ type: 'reload-page',
698
+ paths: ['public/**/*.json'],
697
699
  },
698
700
  ],
699
701
  },
700
- });
702
+ })
701
703
  ```
702
704
 
703
705
  - be9b003: Add `source.exclude`.
@@ -1494,9 +1494,9 @@ export const __webpack_modules__ = {
1494
1494
  if (void 0 === value) return true;
1495
1495
  return "string" == typeof value || "boolean" == typeof value;
1496
1496
  });
1497
- const _io41 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@926"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
1497
+ const _io41 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6827"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
1498
1498
  if ([
1499
- "__@toStringTag@926"
1499
+ "__@toStringTag@6827"
1500
1500
  ].some((prop)=>key === prop)) return true;
1501
1501
  const value = input[key];
1502
1502
  if (void 0 === value) return true;
@@ -3105,14 +3105,14 @@ export const __webpack_modules__ = {
3105
3105
  if (void 0 === value) return true;
3106
3106
  return false;
3107
3107
  })));
3108
- const _io149 = (input, _exceptionable = true)=>"number" == typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" == typeof input.byteLength && "number" == typeof input.byteOffset && "number" == typeof input.length && "Uint8Array" === input["__@toStringTag@926"] && Object.keys(input).every((key)=>{
3108
+ const _io149 = (input, _exceptionable = true)=>"number" == typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" == typeof input.byteLength && "number" == typeof input.byteOffset && "number" == typeof input.length && "Uint8Array" === input["__@toStringTag@6827"] && Object.keys(input).every((key)=>{
3109
3109
  if ([
3110
3110
  "BYTES_PER_ELEMENT",
3111
3111
  "buffer",
3112
3112
  "byteLength",
3113
3113
  "byteOffset",
3114
3114
  "length",
3115
- "__@toStringTag@926"
3115
+ "__@toStringTag@6827"
3116
3116
  ].some((prop)=>key === prop)) return true;
3117
3117
  const value = input[key];
3118
3118
  if (void 0 === value) return true;
@@ -6392,9 +6392,9 @@ export const __webpack_modules__ = {
6392
6392
  if (void 0 === value) return true;
6393
6393
  return false;
6394
6394
  }));
6395
- const _io408 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@926"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
6395
+ const _io408 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6827"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
6396
6396
  if ([
6397
- "__@toStringTag@926"
6397
+ "__@toStringTag@6827"
6398
6398
  ].some((prop)=>key === prop)) return true;
6399
6399
  const value = input[key];
6400
6400
  if (void 0 === value) return true;
@@ -7147,18 +7147,18 @@ export const __webpack_modules__ = {
7147
7147
  return false;
7148
7148
  })();
7149
7149
  const _iu1 = (input, _exceptionable = true)=>(()=>{
7150
- if (void 0 !== input["__@toStringTag@926"]) return _io149(input, _exceptionable);
7150
+ if (void 0 !== input["__@toStringTag@6827"]) return _io149(input, _exceptionable);
7151
7151
  if (void 0 !== input.pem) return _io150(input, _exceptionable);
7152
7152
  return false;
7153
7153
  })();
7154
7154
  const _iu2 = (input, _exceptionable = true)=>(()=>{
7155
- if (void 0 !== input["__@toStringTag@926"]) return _io149(input, _exceptionable);
7155
+ if (void 0 !== input["__@toStringTag@6827"]) return _io149(input, _exceptionable);
7156
7156
  if (void 0 !== input.buf) return _io151(input, _exceptionable);
7157
7157
  return false;
7158
7158
  })();
7159
7159
  const _iu3 = (input, _exceptionable = true)=>(()=>{
7160
7160
  if (void 0 !== input.name) return _io407(input, _exceptionable);
7161
- if (void 0 !== input["__@toStringTag@926"]) return _io408(input, _exceptionable);
7161
+ if (void 0 !== input["__@toStringTag@6827"]) return _io408(input, _exceptionable);
7162
7162
  return false;
7163
7163
  })();
7164
7164
  const _iu4 = (input, _exceptionable = true)=>(()=>{
@@ -9774,14 +9774,14 @@ export const __webpack_modules__ = {
9774
9774
  }).every((flag)=>flag)
9775
9775
  ].every((flag)=>flag);
9776
9776
  const _vo41 = (input, _path, _exceptionable = true)=>[
9777
- "string" == typeof input["__@toStringTag@926"] || _report(_exceptionable, {
9778
- path: _path + "[\"__@toStringTag@926\"]",
9777
+ "string" == typeof input["__@toStringTag@6827"] || _report(_exceptionable, {
9778
+ path: _path + "[\"__@toStringTag@6827\"]",
9779
9779
  expected: "string",
9780
- value: input["__@toStringTag@926"]
9780
+ value: input["__@toStringTag@6827"]
9781
9781
  }),
9782
9782
  1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
9783
9783
  if ([
9784
- "__@toStringTag@926"
9784
+ "__@toStringTag@6827"
9785
9785
  ].some((prop)=>key === prop)) return true;
9786
9786
  const value = input[key];
9787
9787
  if (void 0 === value) return true;
@@ -18801,10 +18801,10 @@ export const __webpack_modules__ = {
18801
18801
  expected: "number",
18802
18802
  value: input.length
18803
18803
  }),
18804
- "Uint8Array" === input["__@toStringTag@926"] || _report(_exceptionable, {
18805
- path: _path + "[\"__@toStringTag@926\"]",
18804
+ "Uint8Array" === input["__@toStringTag@6827"] || _report(_exceptionable, {
18805
+ path: _path + "[\"__@toStringTag@6827\"]",
18806
18806
  expected: "\"Uint8Array\"",
18807
- value: input["__@toStringTag@926"]
18807
+ value: input["__@toStringTag@6827"]
18808
18808
  }),
18809
18809
  false === _exceptionable || Object.keys(input).map((key)=>{
18810
18810
  if ([
@@ -18813,7 +18813,7 @@ export const __webpack_modules__ = {
18813
18813
  "byteLength",
18814
18814
  "byteOffset",
18815
18815
  "length",
18816
- "__@toStringTag@926"
18816
+ "__@toStringTag@6827"
18817
18817
  ].some((prop)=>key === prop)) return true;
18818
18818
  const value = input[key];
18819
18819
  if (void 0 === value) return true;
@@ -37042,14 +37042,14 @@ export const __webpack_modules__ = {
37042
37042
  }).every((flag)=>flag)
37043
37043
  ].every((flag)=>flag);
37044
37044
  const _vo408 = (input, _path, _exceptionable = true)=>[
37045
- "string" == typeof input["__@toStringTag@926"] || _report(_exceptionable, {
37046
- path: _path + "[\"__@toStringTag@926\"]",
37045
+ "string" == typeof input["__@toStringTag@6827"] || _report(_exceptionable, {
37046
+ path: _path + "[\"__@toStringTag@6827\"]",
37047
37047
  expected: "string",
37048
- value: input["__@toStringTag@926"]
37048
+ value: input["__@toStringTag@6827"]
37049
37049
  }),
37050
37050
  1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
37051
37051
  if ([
37052
- "__@toStringTag@926"
37052
+ "__@toStringTag@6827"
37053
37053
  ].some((prop)=>key === prop)) return true;
37054
37054
  const value = input[key];
37055
37055
  if (void 0 === value) return true;
@@ -40930,7 +40930,7 @@ export const __webpack_modules__ = {
40930
40930
  });
40931
40931
  })();
40932
40932
  const _vu1 = (input, _path, _exceptionable = true)=>(()=>{
40933
- if (void 0 !== input["__@toStringTag@926"]) return _vo149(input, _path, _exceptionable);
40933
+ if (void 0 !== input["__@toStringTag@6827"]) return _vo149(input, _path, _exceptionable);
40934
40934
  if (void 0 !== input.pem) return _vo150(input, _path, _exceptionable);
40935
40935
  return _report(_exceptionable, {
40936
40936
  path: _path,
@@ -40939,7 +40939,7 @@ export const __webpack_modules__ = {
40939
40939
  });
40940
40940
  })();
40941
40941
  const _vu2 = (input, _path, _exceptionable = true)=>(()=>{
40942
- if (void 0 !== input["__@toStringTag@926"]) return _vo149(input, _path, _exceptionable);
40942
+ if (void 0 !== input["__@toStringTag@6827"]) return _vo149(input, _path, _exceptionable);
40943
40943
  if (void 0 !== input.buf) return _vo151(input, _path, _exceptionable);
40944
40944
  return _report(_exceptionable, {
40945
40945
  path: _path,
@@ -40949,7 +40949,7 @@ export const __webpack_modules__ = {
40949
40949
  })();
40950
40950
  const _vu3 = (input, _path, _exceptionable = true)=>(()=>{
40951
40951
  if (void 0 !== input.name) return _vo407(input, _path, _exceptionable);
40952
- if (void 0 !== input["__@toStringTag@926"]) return _vo408(input, _path, _exceptionable);
40952
+ if (void 0 !== input["__@toStringTag@6827"]) return _vo408(input, _path, _exceptionable);
40953
40953
  return _report(_exceptionable, {
40954
40954
  path: _path,
40955
40955
  expected: "(LooseRsbuildPlugin | RsbuildPlugins | LooseRsbuildPlugin | Falsy)",
@@ -81,8 +81,8 @@ export const __webpack_modules__ = {
81
81
  hostname,
82
82
  port: api.context.devServer?.port?.toString() ?? '',
83
83
  pathname: '/rsbuild-hmr',
84
- hot: options?.hmr ?? true ? 'true' : 'false',
85
- 'live-reload': options?.liveReload ?? true ? 'true' : 'false',
84
+ hot: environment.config.dev?.hmr ?? true ? 'true' : 'false',
85
+ 'live-reload': environment.config.dev?.liveReload ?? true ? 'true' : 'false',
86
86
  protocol: 'ws'
87
87
  });
88
88
  if (environment.webSocketToken) searchParams.set('token', environment.webSocketToken);
@@ -303,7 +303,9 @@ export const __webpack_modules__ = {
303
303
  function toRsbuildConfig(config) {
304
304
  return {
305
305
  dev: {
306
+ hmr: config.dev?.hmr ?? true,
306
307
  lazyCompilation: false,
308
+ liveReload: config.dev?.liveReload ?? true,
307
309
  watchFiles: config.dev?.watchFiles,
308
310
  writeToDisk: config.dev?.writeToDisk ?? true,
309
311
  progressBar: config.dev?.progressBar ?? true
@@ -63,7 +63,7 @@ export const __webpack_modules__ = {
63
63
  });
64
64
  var core_ = __webpack_require__("@rsbuild/core");
65
65
  var package_namespaceObject = {
66
- rE: "0.11.5"
66
+ rE: "0.11.6"
67
67
  };
68
68
  const version = package_namespaceObject.rE;
69
69
  const rspackVersion = core_.rspack.rspackVersion;
@@ -295,7 +295,9 @@ export const __webpack_modules__ = {
295
295
  function toRsbuildConfig(config) {
296
296
  return {
297
297
  dev: {
298
+ hmr: config.dev?.hmr ?? true,
298
299
  lazyCompilation: false,
300
+ liveReload: config.dev?.liveReload ?? true,
299
301
  watchFiles: config.dev?.watchFiles,
300
302
  writeToDisk: config.dev?.writeToDisk ?? true,
301
303
  progressBar: config.dev?.progressBar ?? true
@@ -241,7 +241,9 @@ export const __webpack_modules__ = {
241
241
  function toRsbuildConfig(config) {
242
242
  return {
243
243
  dev: {
244
+ hmr: config.dev?.hmr ?? true,
244
245
  lazyCompilation: false,
246
+ liveReload: config.dev?.liveReload ?? true,
245
247
  watchFiles: config.dev?.watchFiles,
246
248
  writeToDisk: config.dev?.writeToDisk ?? true,
247
249
  progressBar: config.dev?.progressBar ?? true
@@ -243,7 +243,9 @@ export const __webpack_modules__ = {
243
243
  function toRsbuildConfig(config) {
244
244
  return {
245
245
  dev: {
246
+ hmr: config.dev?.hmr ?? true,
246
247
  lazyCompilation: false,
248
+ liveReload: config.dev?.liveReload ?? true,
247
249
  watchFiles: config.dev?.watchFiles,
248
250
  writeToDisk: config.dev?.writeToDisk ?? true,
249
251
  progressBar: config.dev?.progressBar ?? true
@@ -1494,9 +1494,9 @@ export const __webpack_modules__ = {
1494
1494
  if (void 0 === value) return true;
1495
1495
  return "string" == typeof value || "boolean" == typeof value;
1496
1496
  });
1497
- const _io41 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6827"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
1497
+ const _io41 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@926"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
1498
1498
  if ([
1499
- "__@toStringTag@6827"
1499
+ "__@toStringTag@926"
1500
1500
  ].some((prop)=>key === prop)) return true;
1501
1501
  const value = input[key];
1502
1502
  if (void 0 === value) return true;
@@ -3105,14 +3105,14 @@ export const __webpack_modules__ = {
3105
3105
  if (void 0 === value) return true;
3106
3106
  return false;
3107
3107
  })));
3108
- const _io149 = (input, _exceptionable = true)=>"number" == typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" == typeof input.byteLength && "number" == typeof input.byteOffset && "number" == typeof input.length && "Uint8Array" === input["__@toStringTag@6827"] && Object.keys(input).every((key)=>{
3108
+ const _io149 = (input, _exceptionable = true)=>"number" == typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" == typeof input.byteLength && "number" == typeof input.byteOffset && "number" == typeof input.length && "Uint8Array" === input["__@toStringTag@926"] && Object.keys(input).every((key)=>{
3109
3109
  if ([
3110
3110
  "BYTES_PER_ELEMENT",
3111
3111
  "buffer",
3112
3112
  "byteLength",
3113
3113
  "byteOffset",
3114
3114
  "length",
3115
- "__@toStringTag@6827"
3115
+ "__@toStringTag@926"
3116
3116
  ].some((prop)=>key === prop)) return true;
3117
3117
  const value = input[key];
3118
3118
  if (void 0 === value) return true;
@@ -6392,9 +6392,9 @@ export const __webpack_modules__ = {
6392
6392
  if (void 0 === value) return true;
6393
6393
  return false;
6394
6394
  }));
6395
- const _io408 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6827"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
6395
+ const _io408 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@926"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
6396
6396
  if ([
6397
- "__@toStringTag@6827"
6397
+ "__@toStringTag@926"
6398
6398
  ].some((prop)=>key === prop)) return true;
6399
6399
  const value = input[key];
6400
6400
  if (void 0 === value) return true;
@@ -7147,18 +7147,18 @@ export const __webpack_modules__ = {
7147
7147
  return false;
7148
7148
  })();
7149
7149
  const _iu1 = (input, _exceptionable = true)=>(()=>{
7150
- if (void 0 !== input["__@toStringTag@6827"]) return _io149(input, _exceptionable);
7150
+ if (void 0 !== input["__@toStringTag@926"]) return _io149(input, _exceptionable);
7151
7151
  if (void 0 !== input.pem) return _io150(input, _exceptionable);
7152
7152
  return false;
7153
7153
  })();
7154
7154
  const _iu2 = (input, _exceptionable = true)=>(()=>{
7155
- if (void 0 !== input["__@toStringTag@6827"]) return _io149(input, _exceptionable);
7155
+ if (void 0 !== input["__@toStringTag@926"]) return _io149(input, _exceptionable);
7156
7156
  if (void 0 !== input.buf) return _io151(input, _exceptionable);
7157
7157
  return false;
7158
7158
  })();
7159
7159
  const _iu3 = (input, _exceptionable = true)=>(()=>{
7160
7160
  if (void 0 !== input.name) return _io407(input, _exceptionable);
7161
- if (void 0 !== input["__@toStringTag@6827"]) return _io408(input, _exceptionable);
7161
+ if (void 0 !== input["__@toStringTag@926"]) return _io408(input, _exceptionable);
7162
7162
  return false;
7163
7163
  })();
7164
7164
  const _iu4 = (input, _exceptionable = true)=>(()=>{
@@ -9774,14 +9774,14 @@ export const __webpack_modules__ = {
9774
9774
  }).every((flag)=>flag)
9775
9775
  ].every((flag)=>flag);
9776
9776
  const _vo41 = (input, _path, _exceptionable = true)=>[
9777
- "string" == typeof input["__@toStringTag@6827"] || _report(_exceptionable, {
9778
- path: _path + "[\"__@toStringTag@6827\"]",
9777
+ "string" == typeof input["__@toStringTag@926"] || _report(_exceptionable, {
9778
+ path: _path + "[\"__@toStringTag@926\"]",
9779
9779
  expected: "string",
9780
- value: input["__@toStringTag@6827"]
9780
+ value: input["__@toStringTag@926"]
9781
9781
  }),
9782
9782
  1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
9783
9783
  if ([
9784
- "__@toStringTag@6827"
9784
+ "__@toStringTag@926"
9785
9785
  ].some((prop)=>key === prop)) return true;
9786
9786
  const value = input[key];
9787
9787
  if (void 0 === value) return true;
@@ -18801,10 +18801,10 @@ export const __webpack_modules__ = {
18801
18801
  expected: "number",
18802
18802
  value: input.length
18803
18803
  }),
18804
- "Uint8Array" === input["__@toStringTag@6827"] || _report(_exceptionable, {
18805
- path: _path + "[\"__@toStringTag@6827\"]",
18804
+ "Uint8Array" === input["__@toStringTag@926"] || _report(_exceptionable, {
18805
+ path: _path + "[\"__@toStringTag@926\"]",
18806
18806
  expected: "\"Uint8Array\"",
18807
- value: input["__@toStringTag@6827"]
18807
+ value: input["__@toStringTag@926"]
18808
18808
  }),
18809
18809
  false === _exceptionable || Object.keys(input).map((key)=>{
18810
18810
  if ([
@@ -18813,7 +18813,7 @@ export const __webpack_modules__ = {
18813
18813
  "byteLength",
18814
18814
  "byteOffset",
18815
18815
  "length",
18816
- "__@toStringTag@6827"
18816
+ "__@toStringTag@926"
18817
18817
  ].some((prop)=>key === prop)) return true;
18818
18818
  const value = input[key];
18819
18819
  if (void 0 === value) return true;
@@ -37042,14 +37042,14 @@ export const __webpack_modules__ = {
37042
37042
  }).every((flag)=>flag)
37043
37043
  ].every((flag)=>flag);
37044
37044
  const _vo408 = (input, _path, _exceptionable = true)=>[
37045
- "string" == typeof input["__@toStringTag@6827"] || _report(_exceptionable, {
37046
- path: _path + "[\"__@toStringTag@6827\"]",
37045
+ "string" == typeof input["__@toStringTag@926"] || _report(_exceptionable, {
37046
+ path: _path + "[\"__@toStringTag@926\"]",
37047
37047
  expected: "string",
37048
- value: input["__@toStringTag@6827"]
37048
+ value: input["__@toStringTag@926"]
37049
37049
  }),
37050
37050
  1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
37051
37051
  if ([
37052
- "__@toStringTag@6827"
37052
+ "__@toStringTag@926"
37053
37053
  ].some((prop)=>key === prop)) return true;
37054
37054
  const value = input[key];
37055
37055
  if (void 0 === value) return true;
@@ -40930,7 +40930,7 @@ export const __webpack_modules__ = {
40930
40930
  });
40931
40931
  })();
40932
40932
  const _vu1 = (input, _path, _exceptionable = true)=>(()=>{
40933
- if (void 0 !== input["__@toStringTag@6827"]) return _vo149(input, _path, _exceptionable);
40933
+ if (void 0 !== input["__@toStringTag@926"]) return _vo149(input, _path, _exceptionable);
40934
40934
  if (void 0 !== input.pem) return _vo150(input, _path, _exceptionable);
40935
40935
  return _report(_exceptionable, {
40936
40936
  path: _path,
@@ -40939,7 +40939,7 @@ export const __webpack_modules__ = {
40939
40939
  });
40940
40940
  })();
40941
40941
  const _vu2 = (input, _path, _exceptionable = true)=>(()=>{
40942
- if (void 0 !== input["__@toStringTag@6827"]) return _vo149(input, _path, _exceptionable);
40942
+ if (void 0 !== input["__@toStringTag@926"]) return _vo149(input, _path, _exceptionable);
40943
40943
  if (void 0 !== input.buf) return _vo151(input, _path, _exceptionable);
40944
40944
  return _report(_exceptionable, {
40945
40945
  path: _path,
@@ -40949,7 +40949,7 @@ export const __webpack_modules__ = {
40949
40949
  })();
40950
40950
  const _vu3 = (input, _path, _exceptionable = true)=>(()=>{
40951
40951
  if (void 0 !== input.name) return _vo407(input, _path, _exceptionable);
40952
- if (void 0 !== input["__@toStringTag@6827"]) return _vo408(input, _path, _exceptionable);
40952
+ if (void 0 !== input["__@toStringTag@926"]) return _vo408(input, _path, _exceptionable);
40953
40953
  return _report(_exceptionable, {
40954
40954
  path: _path,
40955
40955
  expected: "(LooseRsbuildPlugin | RsbuildPlugins | LooseRsbuildPlugin | Falsy)",
@@ -81,8 +81,8 @@ export const __webpack_modules__ = {
81
81
  hostname,
82
82
  port: api.context.devServer?.port?.toString() ?? '',
83
83
  pathname: '/rsbuild-hmr',
84
- hot: options?.hmr ?? true ? 'true' : 'false',
85
- 'live-reload': options?.liveReload ?? true ? 'true' : 'false',
84
+ hot: environment.config.dev?.hmr ?? true ? 'true' : 'false',
85
+ 'live-reload': environment.config.dev?.liveReload ?? true ? 'true' : 'false',
86
86
  protocol: 'ws'
87
87
  });
88
88
  if (environment.webSocketToken) searchParams.set('token', environment.webSocketToken);
@@ -11,7 +11,7 @@ export const __webpack_modules__ = {
11
11
  });
12
12
  var core_ = __webpack_require__("@rsbuild/core");
13
13
  var package_namespaceObject = {
14
- rE: "0.11.5"
14
+ rE: "0.11.6"
15
15
  };
16
16
  const version = package_namespaceObject.rE;
17
17
  const rspackVersion = core_.rspack.rspackVersion;
package/dist/index.js CHANGED
@@ -108,7 +108,7 @@ var __webpack_modules__ = {
108
108
  });
109
109
  var core_ = __webpack_require__("@rsbuild/core");
110
110
  var package_namespaceObject = {
111
- rE: "0.11.5"
111
+ rE: "0.11.6"
112
112
  };
113
113
  const version = package_namespaceObject.rE;
114
114
  const rspackVersion = core_.rspack.rspackVersion;
@@ -321,7 +321,9 @@ const defaultDataUriLimit = 2048;
321
321
  function toRsbuildConfig(config) {
322
322
  return {
323
323
  dev: {
324
+ hmr: config.dev?.hmr ?? true,
324
325
  lazyCompilation: false,
326
+ liveReload: config.dev?.liveReload ?? true,
325
327
  watchFiles: config.dev?.watchFiles,
326
328
  writeToDisk: config.dev?.writeToDisk ?? true,
327
329
  progressBar: config.dev?.progressBar ?? true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/rspeedy-canary",
3
- "version": "0.11.6-canary-20251011-820b3f9a",
3
+ "version": "0.11.6",
4
4
  "description": "A webpack/rspack-based frontend toolchain for Lynx",
5
5
  "keywords": [
6
6
  "webpack",