@lynx-js/rspeedy-canary 0.12.2 → 0.12.3-canary-20251216-e38e21a1

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,5 +1,14 @@
1
1
  # @lynx-js/rspeedy
2
2
 
3
+ ## 0.12.3-canary-20251216115050-e38e21a13bc43472da91f99f6cc60266d7e0de8b
4
+
5
+ ### Patch Changes
6
+
7
+ - Support environment variants to enable multiple configurations for the same targets. ([#1969](https://github.com/lynx-family/lynx-stack/pull/1969))
8
+
9
+ - Updated dependencies []:
10
+ - @lynx-js/web-rsbuild-server-middleware@0.19.2-canary-20251216115050-e38e21a13bc43472da91f99f6cc60266d7e0de8b
11
+
3
12
  ## 0.12.2
4
13
 
5
14
  ### Patch Changes
@@ -105,11 +114,11 @@
105
114
  - Support `command` and `env` parameters in the function exported by `lynx.config.js`. ([#1669](https://github.com/lynx-family/lynx-stack/pull/1669))
106
115
 
107
116
  ```js
108
- import { defineConfig } from '@lynx-js/rspeedy'
117
+ import { defineConfig } from "@lynx-js/rspeedy";
109
118
 
110
119
  export default defineConfig(({ command, env }) => {
111
- const isBuild = command === 'build'
112
- const isTest = env === 'test'
120
+ const isBuild = command === "build";
121
+ const isTest = env === "test";
113
122
 
114
123
  return {
115
124
  output: {
@@ -118,8 +127,8 @@
118
127
  performance: {
119
128
  buildCache: isBuild,
120
129
  },
121
- }
122
- })
130
+ };
131
+ });
123
132
  ```
124
133
 
125
134
  - Support `resolve.dedupe`. ([#1671](https://github.com/lynx-family/lynx-stack/pull/1671))
@@ -127,30 +136,30 @@
127
136
  This is useful when having multiple duplicated packages in the bundle:
128
137
 
129
138
  ```js
130
- import { defineConfig } from '@lynx-js/rspeedy'
139
+ import { defineConfig } from "@lynx-js/rspeedy";
131
140
 
132
141
  export default defineConfig({
133
142
  resolve: {
134
- dedupe: ['tslib'],
143
+ dedupe: ["tslib"],
135
144
  },
136
- })
145
+ });
137
146
  ```
138
147
 
139
148
  - Support `resolve.aliasStrategy` for controlling priority between `tsconfig.json` paths and `resolve.alias` ([#1722](https://github.com/lynx-family/lynx-stack/pull/1722))
140
149
 
141
150
  ```js
142
- import { defineConfig } from '@lynx-js/rspeedy'
151
+ import { defineConfig } from "@lynx-js/rspeedy";
143
152
 
144
153
  export default defineConfig({
145
154
  resolve: {
146
155
  alias: {
147
- '@': './src',
156
+ "@": "./src",
148
157
  },
149
158
  // 'prefer-tsconfig' (default): tsconfig.json paths take priority
150
159
  // 'prefer-alias': resolve.alias takes priority
151
- aliasStrategy: 'prefer-alias',
160
+ aliasStrategy: "prefer-alias",
152
161
  },
153
- })
162
+ });
154
163
  ```
155
164
 
156
165
  - Bump Rsbuild v1.5.4 with Rspack v1.5.2. ([#1644](https://github.com/lynx-family/lynx-stack/pull/1644))
@@ -170,7 +179,7 @@
170
179
  - Add `output.dataUriLimit.*` for fine-grained control of asset inlining. ([#1648](https://github.com/lynx-family/lynx-stack/pull/1648))
171
180
 
172
181
  ```js
173
- import { defineConfig } from '@lynx-js/rspeedy'
182
+ import { defineConfig } from "@lynx-js/rspeedy";
174
183
 
175
184
  export default defineConfig({
176
185
  output: {
@@ -179,7 +188,7 @@
179
188
  media: 0,
180
189
  },
181
190
  },
182
- })
191
+ });
183
192
  ```
184
193
 
185
194
  ## 0.11.0
@@ -299,28 +308,28 @@
299
308
 
300
309
  ```ts
301
310
  type InlineChunkTestFunction = (params: {
302
- size: number
303
- name: string
304
- }) => boolean
311
+ size: number;
312
+ name: string;
313
+ }) => boolean;
305
314
 
306
- type InlineChunkTest = RegExp | InlineChunkTestFunction
315
+ type InlineChunkTest = RegExp | InlineChunkTestFunction;
307
316
 
308
317
  type InlineChunkConfig =
309
318
  | boolean
310
319
  | InlineChunkTest
311
- | { enable?: boolean | 'auto', test: InlineChunkTest }
320
+ | { enable?: boolean | "auto"; test: InlineChunkTest };
312
321
  ```
313
322
 
314
323
  ```ts
315
- import { defineConfig } from '@lynx-js/rspeedy'
324
+ import { defineConfig } from "@lynx-js/rspeedy";
316
325
 
317
326
  export default defineConfig({
318
327
  output: {
319
328
  inlineScripts: ({ name, size }) => {
320
- return name.includes('foo') && size < 1000
329
+ return name.includes("foo") && size < 1000;
321
330
  },
322
331
  },
323
- })
332
+ });
324
333
  ```
325
334
 
326
335
  - docs: remove chunks: 'all' in comments ([#1168](https://github.com/lynx-family/lynx-stack/pull/1168))
@@ -363,13 +372,13 @@
363
372
  example:
364
373
 
365
374
  ```js
366
- import { defineConfig } from '@lynx-js/rspeedy'
375
+ import { defineConfig } from "@lynx-js/rspeedy";
367
376
 
368
377
  export default defineConfig({
369
378
  output: {
370
379
  inlineScripts: false,
371
380
  },
372
- })
381
+ });
373
382
  ```
374
383
 
375
384
  - Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
@@ -389,12 +398,12 @@
389
398
  example:
390
399
 
391
400
  ```js
392
- import { defineConfig } from '@lynx-js/rspeedy'
401
+ import { defineConfig } from "@lynx-js/rspeedy";
393
402
  export default defineConfig({
394
403
  source: {
395
- preEntry: './src/polyfill.ts',
404
+ preEntry: "./src/polyfill.ts",
396
405
  },
397
- })
406
+ });
398
407
  ```
399
408
 
400
409
  - Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
@@ -405,17 +414,17 @@
405
414
 
406
415
  ```js
407
416
  export const myPlugin = {
408
- name: 'my-plugin',
417
+ name: "my-plugin",
409
418
  setup(api) {
410
- const { callerName } = api.context
419
+ const { callerName } = api.context;
411
420
 
412
- if (callerName === 'rslib') {
421
+ if (callerName === "rslib") {
413
422
  // ...
414
- } else if (callerName === 'rspeedy') {
423
+ } else if (callerName === "rspeedy") {
415
424
  // ...
416
425
  }
417
426
  },
418
- }
427
+ };
419
428
  ```
420
429
 
421
430
  - Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
@@ -438,7 +447,7 @@
438
447
  Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
439
448
 
440
449
  ```js
441
- import { defineConfig } from '@lynx-js/rspeedy'
450
+ import { defineConfig } from "@lynx-js/rspeedy";
442
451
 
443
452
  export default defineConfig({
444
453
  tools: {
@@ -448,7 +457,7 @@
448
457
  },
449
458
  },
450
459
  },
451
- })
460
+ });
452
461
  ```
453
462
 
454
463
  See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
@@ -580,12 +589,12 @@
580
589
  example:
581
590
 
582
591
  ```js
583
- import { defineConfig } from '@lynx-js/rspeedy'
592
+ import { defineConfig } from "@lynx-js/rspeedy";
584
593
  export default defineConfig({
585
594
  server: {
586
- base: '/dist',
595
+ base: "/dist",
587
596
  },
588
- })
597
+ });
589
598
  ```
590
599
 
591
600
  - Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
@@ -638,11 +647,11 @@
638
647
  You can switch to other tools by using:
639
648
 
640
649
  ```js
641
- import { defineConfig } from '@lynx-js/rspeedy'
650
+ import { defineConfig } from "@lynx-js/rspeedy";
642
651
  import {
643
652
  CssMinimizerWebpackPlugin,
644
653
  pluginCssMinimizer,
645
- } from '@rsbuild/plugin-css-minimizer'
654
+ } from "@rsbuild/plugin-css-minimizer";
646
655
 
647
656
  export default defineConfig({
648
657
  plugins: [
@@ -655,7 +664,7 @@
655
664
  },
656
665
  }),
657
666
  ],
658
- })
667
+ });
659
668
  ```
660
669
 
661
670
  See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
@@ -665,8 +674,8 @@
665
674
  You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
666
675
 
667
676
  ```js
668
- import { defineConfig } from '@lynx-js/rspeedy'
669
- import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
677
+ import { defineConfig } from "@lynx-js/rspeedy";
678
+ import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
670
679
 
671
680
  export default defineConfig({
672
681
  plugins: [
@@ -678,7 +687,7 @@
678
687
  },
679
688
  }),
680
689
  ],
681
- })
690
+ });
682
691
  ```
683
692
 
684
693
  ## 0.7.1
@@ -698,7 +707,7 @@
698
707
  You may turn it off using `output.minify.css: false`:
699
708
 
700
709
  ```js
701
- import { defineConfig } from '@lynx-js/rspeedy'
710
+ import { defineConfig } from "@lynx-js/rspeedy";
702
711
 
703
712
  export default defineConfig({
704
713
  output: {
@@ -706,18 +715,18 @@
706
715
  css: false,
707
716
  },
708
717
  },
709
- })
718
+ });
710
719
  ```
711
720
 
712
721
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
713
722
 
714
723
  ```js
715
- import { defineConfig } from '@lynx-js/rspeedy'
716
- import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
724
+ import { defineConfig } from "@lynx-js/rspeedy";
725
+ import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
717
726
 
718
727
  export default defineConfig({
719
728
  plugins: [pluginCssMinimizer()],
720
- })
729
+ });
721
730
  ```
722
731
 
723
732
  - 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
@@ -744,22 +753,22 @@
744
753
  - The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
745
754
 
746
755
  ```js
747
- import { defineConfig } from '@lynx-js/rspeedy'
756
+ import { defineConfig } from "@lynx-js/rspeedy";
748
757
 
749
758
  export default defineConfig({
750
759
  dev: {
751
760
  watchFiles: [
752
761
  {
753
- type: 'reload-server',
754
- paths: ['public/**/*.txt'],
762
+ type: "reload-server",
763
+ paths: ["public/**/*.txt"],
755
764
  },
756
765
  {
757
- type: 'reload-page',
758
- paths: ['public/**/*.json'],
766
+ type: "reload-page",
767
+ paths: ["public/**/*.json"],
759
768
  },
760
769
  ],
761
770
  },
762
- })
771
+ });
763
772
  ```
764
773
 
765
774
  - be9b003: Add `source.exclude`.
@@ -1584,9 +1584,9 @@ export const __webpack_modules__ = {
1584
1584
  if (void 0 === value) return true;
1585
1585
  return "string" == typeof value || "boolean" == typeof value;
1586
1586
  });
1587
- const _io42 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@933"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
1587
+ const _io42 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6960"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
1588
1588
  if ([
1589
- "__@toStringTag@933"
1589
+ "__@toStringTag@6960"
1590
1590
  ].some((prop)=>key === prop)) return true;
1591
1591
  const value = input[key];
1592
1592
  if (void 0 === value) return true;
@@ -3214,14 +3214,14 @@ export const __webpack_modules__ = {
3214
3214
  if (void 0 === value) return true;
3215
3215
  return false;
3216
3216
  })));
3217
- const _io152 = (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@933"] && Object.keys(input).every((key)=>{
3217
+ const _io152 = (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@6960"] && Object.keys(input).every((key)=>{
3218
3218
  if ([
3219
3219
  "BYTES_PER_ELEMENT",
3220
3220
  "buffer",
3221
3221
  "byteLength",
3222
3222
  "byteOffset",
3223
3223
  "length",
3224
- "__@toStringTag@933"
3224
+ "__@toStringTag@6960"
3225
3225
  ].some((prop)=>key === prop)) return true;
3226
3226
  const value = input[key];
3227
3227
  if (void 0 === value) return true;
@@ -6635,9 +6635,9 @@ export const __webpack_modules__ = {
6635
6635
  if (void 0 === value) return true;
6636
6636
  return false;
6637
6637
  }));
6638
- const _io422 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@933"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
6638
+ const _io422 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6960"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
6639
6639
  if ([
6640
- "__@toStringTag@933"
6640
+ "__@toStringTag@6960"
6641
6641
  ].some((prop)=>key === prop)) return true;
6642
6642
  const value = input[key];
6643
6643
  if (void 0 === value) return true;
@@ -7361,18 +7361,18 @@ export const __webpack_modules__ = {
7361
7361
  return false;
7362
7362
  })();
7363
7363
  const _iu1 = (input, _exceptionable = true)=>(()=>{
7364
- if (void 0 !== input["__@toStringTag@933"]) return _io152(input, _exceptionable);
7364
+ if (void 0 !== input["__@toStringTag@6960"]) return _io152(input, _exceptionable);
7365
7365
  if (void 0 !== input.pem) return _io153(input, _exceptionable);
7366
7366
  return false;
7367
7367
  })();
7368
7368
  const _iu2 = (input, _exceptionable = true)=>(()=>{
7369
- if (void 0 !== input["__@toStringTag@933"]) return _io152(input, _exceptionable);
7369
+ if (void 0 !== input["__@toStringTag@6960"]) return _io152(input, _exceptionable);
7370
7370
  if (void 0 !== input.buf) return _io154(input, _exceptionable);
7371
7371
  return false;
7372
7372
  })();
7373
7373
  const _iu3 = (input, _exceptionable = true)=>(()=>{
7374
7374
  if (void 0 !== input.name) return _io421(input, _exceptionable);
7375
- if (void 0 !== input["__@toStringTag@933"]) return _io422(input, _exceptionable);
7375
+ if (void 0 !== input["__@toStringTag@6960"]) return _io422(input, _exceptionable);
7376
7376
  return false;
7377
7377
  })();
7378
7378
  const _iu4 = (input, _exceptionable = true)=>(()=>{
@@ -10036,14 +10036,14 @@ export const __webpack_modules__ = {
10036
10036
  }).every((flag)=>flag)
10037
10037
  ].every((flag)=>flag);
10038
10038
  const _vo42 = (input, _path, _exceptionable = true)=>[
10039
- "string" == typeof input["__@toStringTag@933"] || _report(_exceptionable, {
10040
- path: _path + "[\"__@toStringTag@933\"]",
10039
+ "string" == typeof input["__@toStringTag@6960"] || _report(_exceptionable, {
10040
+ path: _path + "[\"__@toStringTag@6960\"]",
10041
10041
  expected: "string",
10042
- value: input["__@toStringTag@933"]
10042
+ value: input["__@toStringTag@6960"]
10043
10043
  }),
10044
10044
  1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
10045
10045
  if ([
10046
- "__@toStringTag@933"
10046
+ "__@toStringTag@6960"
10047
10047
  ].some((prop)=>key === prop)) return true;
10048
10048
  const value = input[key];
10049
10049
  if (void 0 === value) return true;
@@ -19155,10 +19155,10 @@ export const __webpack_modules__ = {
19155
19155
  expected: "number",
19156
19156
  value: input.length
19157
19157
  }),
19158
- "Uint8Array" === input["__@toStringTag@933"] || _report(_exceptionable, {
19159
- path: _path + "[\"__@toStringTag@933\"]",
19158
+ "Uint8Array" === input["__@toStringTag@6960"] || _report(_exceptionable, {
19159
+ path: _path + "[\"__@toStringTag@6960\"]",
19160
19160
  expected: "\"Uint8Array\"",
19161
- value: input["__@toStringTag@933"]
19161
+ value: input["__@toStringTag@6960"]
19162
19162
  }),
19163
19163
  false === _exceptionable || Object.keys(input).map((key)=>{
19164
19164
  if ([
@@ -19167,7 +19167,7 @@ export const __webpack_modules__ = {
19167
19167
  "byteLength",
19168
19168
  "byteOffset",
19169
19169
  "length",
19170
- "__@toStringTag@933"
19170
+ "__@toStringTag@6960"
19171
19171
  ].some((prop)=>key === prop)) return true;
19172
19172
  const value = input[key];
19173
19173
  if (void 0 === value) return true;
@@ -38056,14 +38056,14 @@ export const __webpack_modules__ = {
38056
38056
  }).every((flag)=>flag)
38057
38057
  ].every((flag)=>flag);
38058
38058
  const _vo422 = (input, _path, _exceptionable = true)=>[
38059
- "string" == typeof input["__@toStringTag@933"] || _report(_exceptionable, {
38060
- path: _path + "[\"__@toStringTag@933\"]",
38059
+ "string" == typeof input["__@toStringTag@6960"] || _report(_exceptionable, {
38060
+ path: _path + "[\"__@toStringTag@6960\"]",
38061
38061
  expected: "string",
38062
- value: input["__@toStringTag@933"]
38062
+ value: input["__@toStringTag@6960"]
38063
38063
  }),
38064
38064
  1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
38065
38065
  if ([
38066
- "__@toStringTag@933"
38066
+ "__@toStringTag@6960"
38067
38067
  ].some((prop)=>key === prop)) return true;
38068
38068
  const value = input[key];
38069
38069
  if (void 0 === value) return true;
@@ -41811,7 +41811,7 @@ export const __webpack_modules__ = {
41811
41811
  });
41812
41812
  })();
41813
41813
  const _vu1 = (input, _path, _exceptionable = true)=>(()=>{
41814
- if (void 0 !== input["__@toStringTag@933"]) return _vo152(input, _path, _exceptionable);
41814
+ if (void 0 !== input["__@toStringTag@6960"]) return _vo152(input, _path, _exceptionable);
41815
41815
  if (void 0 !== input.pem) return _vo153(input, _path, _exceptionable);
41816
41816
  return _report(_exceptionable, {
41817
41817
  path: _path,
@@ -41820,7 +41820,7 @@ export const __webpack_modules__ = {
41820
41820
  });
41821
41821
  })();
41822
41822
  const _vu2 = (input, _path, _exceptionable = true)=>(()=>{
41823
- if (void 0 !== input["__@toStringTag@933"]) return _vo152(input, _path, _exceptionable);
41823
+ if (void 0 !== input["__@toStringTag@6960"]) return _vo152(input, _path, _exceptionable);
41824
41824
  if (void 0 !== input.buf) return _vo154(input, _path, _exceptionable);
41825
41825
  return _report(_exceptionable, {
41826
41826
  path: _path,
@@ -41830,7 +41830,7 @@ export const __webpack_modules__ = {
41830
41830
  })();
41831
41831
  const _vu3 = (input, _path, _exceptionable = true)=>(()=>{
41832
41832
  if (void 0 !== input.name) return _vo421(input, _path, _exceptionable);
41833
- if (void 0 !== input["__@toStringTag@933"]) return _vo422(input, _path, _exceptionable);
41833
+ if (void 0 !== input["__@toStringTag@6960"]) return _vo422(input, _path, _exceptionable);
41834
41834
  return _report(_exceptionable, {
41835
41835
  path: _path,
41836
41836
  expected: "(LooseRsbuildPlugin | RsbuildPlugins | LooseRsbuildPlugin | Falsy)",
@@ -14,7 +14,8 @@ export const __webpack_modules__ = {
14
14
  var picocolors_default = /*#__PURE__*/ __webpack_require__.n(picocolors);
15
15
  var debug = __webpack_require__("./src/debug.ts");
16
16
  function isLynx(environment) {
17
- return 'string' == typeof environment ? 'lynx' === environment : 'lynx' === environment.name;
17
+ const environmentName = 'string' == typeof environment ? environment : environment.name;
18
+ return 'lynx' === environmentName || environmentName.startsWith('lynx-');
18
19
  }
19
20
  class ProvidePlugin_ProvidePlugin {
20
21
  definitions;
@@ -9,7 +9,8 @@ export const __webpack_modules__ = {
9
9
  });
10
10
  var getESVersionTarget = __webpack_require__("./src/utils/getESVersionTarget.ts");
11
11
  function isWeb(environment) {
12
- return 'string' == typeof environment ? 'web' === environment : 'web' === environment.name;
12
+ const environmentName = 'string' == typeof environment ? environment : environment.name;
13
+ return 'web' === environmentName || environmentName.startsWith('web-');
13
14
  }
14
15
  function pluginTarget() {
15
16
  return {
@@ -1584,9 +1584,9 @@ export const __webpack_modules__ = {
1584
1584
  if (void 0 === value) return true;
1585
1585
  return "string" == typeof value || "boolean" == typeof value;
1586
1586
  });
1587
- const _io42 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6960"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
1587
+ const _io42 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@933"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
1588
1588
  if ([
1589
- "__@toStringTag@6960"
1589
+ "__@toStringTag@933"
1590
1590
  ].some((prop)=>key === prop)) return true;
1591
1591
  const value = input[key];
1592
1592
  if (void 0 === value) return true;
@@ -3214,14 +3214,14 @@ export const __webpack_modules__ = {
3214
3214
  if (void 0 === value) return true;
3215
3215
  return false;
3216
3216
  })));
3217
- const _io152 = (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@6960"] && Object.keys(input).every((key)=>{
3217
+ const _io152 = (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@933"] && Object.keys(input).every((key)=>{
3218
3218
  if ([
3219
3219
  "BYTES_PER_ELEMENT",
3220
3220
  "buffer",
3221
3221
  "byteLength",
3222
3222
  "byteOffset",
3223
3223
  "length",
3224
- "__@toStringTag@6960"
3224
+ "__@toStringTag@933"
3225
3225
  ].some((prop)=>key === prop)) return true;
3226
3226
  const value = input[key];
3227
3227
  if (void 0 === value) return true;
@@ -6635,9 +6635,9 @@ export const __webpack_modules__ = {
6635
6635
  if (void 0 === value) return true;
6636
6636
  return false;
6637
6637
  }));
6638
- const _io422 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6960"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
6638
+ const _io422 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@933"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
6639
6639
  if ([
6640
- "__@toStringTag@6960"
6640
+ "__@toStringTag@933"
6641
6641
  ].some((prop)=>key === prop)) return true;
6642
6642
  const value = input[key];
6643
6643
  if (void 0 === value) return true;
@@ -7361,18 +7361,18 @@ export const __webpack_modules__ = {
7361
7361
  return false;
7362
7362
  })();
7363
7363
  const _iu1 = (input, _exceptionable = true)=>(()=>{
7364
- if (void 0 !== input["__@toStringTag@6960"]) return _io152(input, _exceptionable);
7364
+ if (void 0 !== input["__@toStringTag@933"]) return _io152(input, _exceptionable);
7365
7365
  if (void 0 !== input.pem) return _io153(input, _exceptionable);
7366
7366
  return false;
7367
7367
  })();
7368
7368
  const _iu2 = (input, _exceptionable = true)=>(()=>{
7369
- if (void 0 !== input["__@toStringTag@6960"]) return _io152(input, _exceptionable);
7369
+ if (void 0 !== input["__@toStringTag@933"]) return _io152(input, _exceptionable);
7370
7370
  if (void 0 !== input.buf) return _io154(input, _exceptionable);
7371
7371
  return false;
7372
7372
  })();
7373
7373
  const _iu3 = (input, _exceptionable = true)=>(()=>{
7374
7374
  if (void 0 !== input.name) return _io421(input, _exceptionable);
7375
- if (void 0 !== input["__@toStringTag@6960"]) return _io422(input, _exceptionable);
7375
+ if (void 0 !== input["__@toStringTag@933"]) return _io422(input, _exceptionable);
7376
7376
  return false;
7377
7377
  })();
7378
7378
  const _iu4 = (input, _exceptionable = true)=>(()=>{
@@ -10036,14 +10036,14 @@ export const __webpack_modules__ = {
10036
10036
  }).every((flag)=>flag)
10037
10037
  ].every((flag)=>flag);
10038
10038
  const _vo42 = (input, _path, _exceptionable = true)=>[
10039
- "string" == typeof input["__@toStringTag@6960"] || _report(_exceptionable, {
10040
- path: _path + "[\"__@toStringTag@6960\"]",
10039
+ "string" == typeof input["__@toStringTag@933"] || _report(_exceptionable, {
10040
+ path: _path + "[\"__@toStringTag@933\"]",
10041
10041
  expected: "string",
10042
- value: input["__@toStringTag@6960"]
10042
+ value: input["__@toStringTag@933"]
10043
10043
  }),
10044
10044
  1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
10045
10045
  if ([
10046
- "__@toStringTag@6960"
10046
+ "__@toStringTag@933"
10047
10047
  ].some((prop)=>key === prop)) return true;
10048
10048
  const value = input[key];
10049
10049
  if (void 0 === value) return true;
@@ -19155,10 +19155,10 @@ export const __webpack_modules__ = {
19155
19155
  expected: "number",
19156
19156
  value: input.length
19157
19157
  }),
19158
- "Uint8Array" === input["__@toStringTag@6960"] || _report(_exceptionable, {
19159
- path: _path + "[\"__@toStringTag@6960\"]",
19158
+ "Uint8Array" === input["__@toStringTag@933"] || _report(_exceptionable, {
19159
+ path: _path + "[\"__@toStringTag@933\"]",
19160
19160
  expected: "\"Uint8Array\"",
19161
- value: input["__@toStringTag@6960"]
19161
+ value: input["__@toStringTag@933"]
19162
19162
  }),
19163
19163
  false === _exceptionable || Object.keys(input).map((key)=>{
19164
19164
  if ([
@@ -19167,7 +19167,7 @@ export const __webpack_modules__ = {
19167
19167
  "byteLength",
19168
19168
  "byteOffset",
19169
19169
  "length",
19170
- "__@toStringTag@6960"
19170
+ "__@toStringTag@933"
19171
19171
  ].some((prop)=>key === prop)) return true;
19172
19172
  const value = input[key];
19173
19173
  if (void 0 === value) return true;
@@ -38056,14 +38056,14 @@ export const __webpack_modules__ = {
38056
38056
  }).every((flag)=>flag)
38057
38057
  ].every((flag)=>flag);
38058
38058
  const _vo422 = (input, _path, _exceptionable = true)=>[
38059
- "string" == typeof input["__@toStringTag@6960"] || _report(_exceptionable, {
38060
- path: _path + "[\"__@toStringTag@6960\"]",
38059
+ "string" == typeof input["__@toStringTag@933"] || _report(_exceptionable, {
38060
+ path: _path + "[\"__@toStringTag@933\"]",
38061
38061
  expected: "string",
38062
- value: input["__@toStringTag@6960"]
38062
+ value: input["__@toStringTag@933"]
38063
38063
  }),
38064
38064
  1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
38065
38065
  if ([
38066
- "__@toStringTag@6960"
38066
+ "__@toStringTag@933"
38067
38067
  ].some((prop)=>key === prop)) return true;
38068
38068
  const value = input[key];
38069
38069
  if (void 0 === value) return true;
@@ -41811,7 +41811,7 @@ export const __webpack_modules__ = {
41811
41811
  });
41812
41812
  })();
41813
41813
  const _vu1 = (input, _path, _exceptionable = true)=>(()=>{
41814
- if (void 0 !== input["__@toStringTag@6960"]) return _vo152(input, _path, _exceptionable);
41814
+ if (void 0 !== input["__@toStringTag@933"]) return _vo152(input, _path, _exceptionable);
41815
41815
  if (void 0 !== input.pem) return _vo153(input, _path, _exceptionable);
41816
41816
  return _report(_exceptionable, {
41817
41817
  path: _path,
@@ -41820,7 +41820,7 @@ export const __webpack_modules__ = {
41820
41820
  });
41821
41821
  })();
41822
41822
  const _vu2 = (input, _path, _exceptionable = true)=>(()=>{
41823
- if (void 0 !== input["__@toStringTag@6960"]) return _vo152(input, _path, _exceptionable);
41823
+ if (void 0 !== input["__@toStringTag@933"]) return _vo152(input, _path, _exceptionable);
41824
41824
  if (void 0 !== input.buf) return _vo154(input, _path, _exceptionable);
41825
41825
  return _report(_exceptionable, {
41826
41826
  path: _path,
@@ -41830,7 +41830,7 @@ export const __webpack_modules__ = {
41830
41830
  })();
41831
41831
  const _vu3 = (input, _path, _exceptionable = true)=>(()=>{
41832
41832
  if (void 0 !== input.name) return _vo421(input, _path, _exceptionable);
41833
- if (void 0 !== input["__@toStringTag@6960"]) return _vo422(input, _path, _exceptionable);
41833
+ if (void 0 !== input["__@toStringTag@933"]) return _vo422(input, _path, _exceptionable);
41834
41834
  return _report(_exceptionable, {
41835
41835
  path: _path,
41836
41836
  expected: "(LooseRsbuildPlugin | RsbuildPlugins | LooseRsbuildPlugin | Falsy)",
@@ -14,7 +14,8 @@ export const __webpack_modules__ = {
14
14
  var picocolors_default = /*#__PURE__*/ __webpack_require__.n(picocolors);
15
15
  var debug = __webpack_require__("./src/debug.ts");
16
16
  function isLynx(environment) {
17
- return 'string' == typeof environment ? 'lynx' === environment : 'lynx' === environment.name;
17
+ const environmentName = 'string' == typeof environment ? environment : environment.name;
18
+ return 'lynx' === environmentName || environmentName.startsWith('lynx-');
18
19
  }
19
20
  class ProvidePlugin_ProvidePlugin {
20
21
  definitions;
@@ -9,7 +9,8 @@ export const __webpack_modules__ = {
9
9
  });
10
10
  var getESVersionTarget = __webpack_require__("./src/utils/getESVersionTarget.ts");
11
11
  function isWeb(environment) {
12
- return 'string' == typeof environment ? 'web' === environment : 'web' === environment.name;
12
+ const environmentName = 'string' == typeof environment ? environment : environment.name;
13
+ return 'web' === environmentName || environmentName.startsWith('web-');
13
14
  }
14
15
  function pluginTarget() {
15
16
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/rspeedy-canary",
3
- "version": "0.12.2",
3
+ "version": "0.12.3-canary-20251216-e38e21a1",
4
4
  "description": "A webpack/rspack-based frontend toolchain for Lynx",
5
5
  "keywords": [
6
6
  "webpack",
@@ -50,7 +50,7 @@
50
50
  "dependencies": {
51
51
  "@lynx-js/cache-events-webpack-plugin": "npm:@lynx-js/cache-events-webpack-plugin-canary@0.0.2",
52
52
  "@lynx-js/chunk-loading-webpack-plugin": "npm:@lynx-js/chunk-loading-webpack-plugin-canary@0.3.3",
53
- "@lynx-js/web-rsbuild-server-middleware": "npm:@lynx-js/web-rsbuild-server-middleware-canary@0.19.1",
53
+ "@lynx-js/web-rsbuild-server-middleware": "npm:@lynx-js/web-rsbuild-server-middleware-canary@0.19.2-canary-20251216-e38e21a1",
54
54
  "@lynx-js/webpack-dev-transport": "npm:@lynx-js/webpack-dev-transport-canary@0.2.0",
55
55
  "@lynx-js/websocket": "npm:@lynx-js/websocket-canary@0.0.4",
56
56
  "@rsbuild/core": "1.6.13",