@lynx-js/rspeedy-canary 0.9.9 → 0.9.10-canary-20250609-2095af91

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,7 @@
1
1
  # @lynx-js/rspeedy
2
2
 
3
+ ## 0.9.10-canary-20250609100237-2095af9163eec23db65914abe4b3f90d8f48b42d
4
+
3
5
  ## 0.9.9
4
6
 
5
7
  ### Patch Changes
@@ -36,13 +38,13 @@
36
38
  example:
37
39
 
38
40
  ```js
39
- import { defineConfig } from '@lynx-js/rspeedy'
41
+ import { defineConfig } from "@lynx-js/rspeedy";
40
42
 
41
43
  export default defineConfig({
42
44
  output: {
43
45
  inlineScripts: false,
44
46
  },
45
- })
47
+ });
46
48
  ```
47
49
 
48
50
  - Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
@@ -62,12 +64,12 @@
62
64
  example:
63
65
 
64
66
  ```js
65
- import { defineConfig } from '@lynx-js/rspeedy'
67
+ import { defineConfig } from "@lynx-js/rspeedy";
66
68
  export default defineConfig({
67
69
  source: {
68
- preEntry: './src/polyfill.ts',
70
+ preEntry: "./src/polyfill.ts",
69
71
  },
70
- })
72
+ });
71
73
  ```
72
74
 
73
75
  - Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
@@ -78,17 +80,17 @@
78
80
 
79
81
  ```js
80
82
  export const myPlugin = {
81
- name: 'my-plugin',
83
+ name: "my-plugin",
82
84
  setup(api) {
83
- const { callerName } = api.context
85
+ const { callerName } = api.context;
84
86
 
85
- if (callerName === 'rslib') {
87
+ if (callerName === "rslib") {
86
88
  // ...
87
- } else if (callerName === 'rspeedy') {
89
+ } else if (callerName === "rspeedy") {
88
90
  // ...
89
91
  }
90
92
  },
91
- }
93
+ };
92
94
  ```
93
95
 
94
96
  - Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
@@ -111,7 +113,7 @@
111
113
  Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
112
114
 
113
115
  ```js
114
- import { defineConfig } from '@lynx-js/rspeedy'
116
+ import { defineConfig } from "@lynx-js/rspeedy";
115
117
 
116
118
  export default defineConfig({
117
119
  tools: {
@@ -121,7 +123,7 @@
121
123
  },
122
124
  },
123
125
  },
124
- })
126
+ });
125
127
  ```
126
128
 
127
129
  See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
@@ -253,12 +255,12 @@
253
255
  example:
254
256
 
255
257
  ```js
256
- import { defineConfig } from '@lynx-js/rspeedy'
258
+ import { defineConfig } from "@lynx-js/rspeedy";
257
259
  export default defineConfig({
258
260
  server: {
259
- base: '/dist',
261
+ base: "/dist",
260
262
  },
261
- })
263
+ });
262
264
  ```
263
265
 
264
266
  - Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
@@ -311,11 +313,11 @@
311
313
  You can switch to other tools by using:
312
314
 
313
315
  ```js
314
- import { defineConfig } from '@lynx-js/rspeedy'
316
+ import { defineConfig } from "@lynx-js/rspeedy";
315
317
  import {
316
318
  CssMinimizerWebpackPlugin,
317
319
  pluginCssMinimizer,
318
- } from '@rsbuild/plugin-css-minimizer'
320
+ } from "@rsbuild/plugin-css-minimizer";
319
321
 
320
322
  export default defineConfig({
321
323
  plugins: [
@@ -328,7 +330,7 @@
328
330
  },
329
331
  }),
330
332
  ],
331
- })
333
+ });
332
334
  ```
333
335
 
334
336
  See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
@@ -338,8 +340,8 @@
338
340
  You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
339
341
 
340
342
  ```js
341
- import { defineConfig } from '@lynx-js/rspeedy'
342
- import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
343
+ import { defineConfig } from "@lynx-js/rspeedy";
344
+ import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
343
345
 
344
346
  export default defineConfig({
345
347
  plugins: [
@@ -351,7 +353,7 @@
351
353
  },
352
354
  }),
353
355
  ],
354
- })
356
+ });
355
357
  ```
356
358
 
357
359
  ## 0.7.1
@@ -371,7 +373,7 @@
371
373
  You may turn it off using `output.minify.css: false`:
372
374
 
373
375
  ```js
374
- import { defineConfig } from '@lynx-js/rspeedy'
376
+ import { defineConfig } from "@lynx-js/rspeedy";
375
377
 
376
378
  export default defineConfig({
377
379
  output: {
@@ -379,18 +381,18 @@
379
381
  css: false,
380
382
  },
381
383
  },
382
- })
384
+ });
383
385
  ```
384
386
 
385
387
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
386
388
 
387
389
  ```js
388
- import { defineConfig } from '@lynx-js/rspeedy'
389
- import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
390
+ import { defineConfig } from "@lynx-js/rspeedy";
391
+ import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
390
392
 
391
393
  export default defineConfig({
392
394
  plugins: [pluginCssMinimizer()],
393
- })
395
+ });
394
396
  ```
395
397
 
396
398
  - 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
@@ -417,22 +419,22 @@
417
419
  - The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
418
420
 
419
421
  ```js
420
- import { defineConfig } from '@lynx-js/rspeedy'
422
+ import { defineConfig } from "@lynx-js/rspeedy";
421
423
 
422
424
  export default defineConfig({
423
425
  dev: {
424
426
  watchFiles: [
425
427
  {
426
- type: 'reload-server',
427
- paths: ['public/**/*.txt'],
428
+ type: "reload-server",
429
+ paths: ["public/**/*.txt"],
428
430
  },
429
431
  {
430
- type: 'reload-page',
431
- paths: ['public/**/*.json'],
432
+ type: "reload-page",
433
+ paths: ["public/**/*.json"],
432
434
  },
433
435
  ],
434
436
  },
435
- })
437
+ });
436
438
  ```
437
439
 
438
440
  - be9b003: Add `source.exclude`.
@@ -1414,9 +1414,9 @@ export const __webpack_modules__ = {
1414
1414
  if (void 0 === value) return true;
1415
1415
  return "string" == typeof value || "boolean" == typeof value;
1416
1416
  });
1417
- const _io50 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6653"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
1417
+ const _io50 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6655"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
1418
1418
  if ([
1419
- "__@toStringTag@6653"
1419
+ "__@toStringTag@6655"
1420
1420
  ].some((prop)=>key === prop)) return true;
1421
1421
  const value = input[key];
1422
1422
  if (void 0 === value) return true;
@@ -2977,14 +2977,14 @@ export const __webpack_modules__ = {
2977
2977
  if (void 0 === value) return true;
2978
2978
  return false;
2979
2979
  })));
2980
- const _io155 = (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@6653"] && Object.keys(input).every((key)=>{
2980
+ const _io155 = (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@6655"] && Object.keys(input).every((key)=>{
2981
2981
  if ([
2982
2982
  "BYTES_PER_ELEMENT",
2983
2983
  "buffer",
2984
2984
  "byteLength",
2985
2985
  "byteOffset",
2986
2986
  "length",
2987
- "__@toStringTag@6653"
2987
+ "__@toStringTag@6655"
2988
2988
  ].some((prop)=>key === prop)) return true;
2989
2989
  const value = input[key];
2990
2990
  if (void 0 === value) return true;
@@ -6191,9 +6191,9 @@ export const __webpack_modules__ = {
6191
6191
  if (void 0 === value) return true;
6192
6192
  return false;
6193
6193
  }));
6194
- const _io409 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6653"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
6194
+ const _io409 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6655"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
6195
6195
  if ([
6196
- "__@toStringTag@6653"
6196
+ "__@toStringTag@6655"
6197
6197
  ].some((prop)=>key === prop)) return true;
6198
6198
  const value = input[key];
6199
6199
  if (void 0 === value) return true;
@@ -6801,18 +6801,18 @@ export const __webpack_modules__ = {
6801
6801
  return false;
6802
6802
  })();
6803
6803
  const _iu3 = (input, _exceptionable = true)=>(()=>{
6804
- if (void 0 !== input["__@toStringTag@6653"]) return _io155(input, _exceptionable);
6804
+ if (void 0 !== input["__@toStringTag@6655"]) return _io155(input, _exceptionable);
6805
6805
  if (void 0 !== input.pem) return _io156(input, _exceptionable);
6806
6806
  return false;
6807
6807
  })();
6808
6808
  const _iu4 = (input, _exceptionable = true)=>(()=>{
6809
- if (void 0 !== input["__@toStringTag@6653"]) return _io155(input, _exceptionable);
6809
+ if (void 0 !== input["__@toStringTag@6655"]) return _io155(input, _exceptionable);
6810
6810
  if (void 0 !== input.buf) return _io157(input, _exceptionable);
6811
6811
  return false;
6812
6812
  })();
6813
6813
  const _iu5 = (input, _exceptionable = true)=>(()=>{
6814
6814
  if (void 0 !== input.name) return _io408(input, _exceptionable);
6815
- if (void 0 !== input["__@toStringTag@6653"]) return _io409(input, _exceptionable);
6815
+ if (void 0 !== input["__@toStringTag@6655"]) return _io409(input, _exceptionable);
6816
6816
  return false;
6817
6817
  })();
6818
6818
  const _iu6 = (input, _exceptionable = true)=>(()=>{
@@ -9556,14 +9556,14 @@ export const __webpack_modules__ = {
9556
9556
  }).every((flag)=>flag)
9557
9557
  ].every((flag)=>flag);
9558
9558
  const _vo50 = (input, _path, _exceptionable = true)=>[
9559
- "string" == typeof input["__@toStringTag@6653"] || _report(_exceptionable, {
9560
- path: _path + "[\"__@toStringTag@6653\"]",
9559
+ "string" == typeof input["__@toStringTag@6655"] || _report(_exceptionable, {
9560
+ path: _path + "[\"__@toStringTag@6655\"]",
9561
9561
  expected: "string",
9562
- value: input["__@toStringTag@6653"]
9562
+ value: input["__@toStringTag@6655"]
9563
9563
  }),
9564
9564
  1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
9565
9565
  if ([
9566
- "__@toStringTag@6653"
9566
+ "__@toStringTag@6655"
9567
9567
  ].some((prop)=>key === prop)) return true;
9568
9568
  const value = input[key];
9569
9569
  if (void 0 === value) return true;
@@ -17922,10 +17922,10 @@ export const __webpack_modules__ = {
17922
17922
  expected: "number",
17923
17923
  value: input.length
17924
17924
  }),
17925
- "Uint8Array" === input["__@toStringTag@6653"] || _report(_exceptionable, {
17926
- path: _path + "[\"__@toStringTag@6653\"]",
17925
+ "Uint8Array" === input["__@toStringTag@6655"] || _report(_exceptionable, {
17926
+ path: _path + "[\"__@toStringTag@6655\"]",
17927
17927
  expected: "\"Uint8Array\"",
17928
- value: input["__@toStringTag@6653"]
17928
+ value: input["__@toStringTag@6655"]
17929
17929
  }),
17930
17930
  false === _exceptionable || Object.keys(input).map((key)=>{
17931
17931
  if ([
@@ -17934,7 +17934,7 @@ export const __webpack_modules__ = {
17934
17934
  "byteLength",
17935
17935
  "byteOffset",
17936
17936
  "length",
17937
- "__@toStringTag@6653"
17937
+ "__@toStringTag@6655"
17938
17938
  ].some((prop)=>key === prop)) return true;
17939
17939
  const value = input[key];
17940
17940
  if (void 0 === value) return true;
@@ -34771,14 +34771,14 @@ export const __webpack_modules__ = {
34771
34771
  }).every((flag)=>flag)
34772
34772
  ].every((flag)=>flag);
34773
34773
  const _vo409 = (input, _path, _exceptionable = true)=>[
34774
- "string" == typeof input["__@toStringTag@6653"] || _report(_exceptionable, {
34775
- path: _path + "[\"__@toStringTag@6653\"]",
34774
+ "string" == typeof input["__@toStringTag@6655"] || _report(_exceptionable, {
34775
+ path: _path + "[\"__@toStringTag@6655\"]",
34776
34776
  expected: "string",
34777
- value: input["__@toStringTag@6653"]
34777
+ value: input["__@toStringTag@6655"]
34778
34778
  }),
34779
34779
  1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
34780
34780
  if ([
34781
- "__@toStringTag@6653"
34781
+ "__@toStringTag@6655"
34782
34782
  ].some((prop)=>key === prop)) return true;
34783
34783
  const value = input[key];
34784
34784
  if (void 0 === value) return true;
@@ -37534,7 +37534,7 @@ export const __webpack_modules__ = {
37534
37534
  });
37535
37535
  })();
37536
37536
  const _vu3 = (input, _path, _exceptionable = true)=>(()=>{
37537
- if (void 0 !== input["__@toStringTag@6653"]) return _vo155(input, _path, _exceptionable);
37537
+ if (void 0 !== input["__@toStringTag@6655"]) return _vo155(input, _path, _exceptionable);
37538
37538
  if (void 0 !== input.pem) return _vo156(input, _path, _exceptionable);
37539
37539
  return _report(_exceptionable, {
37540
37540
  path: _path,
@@ -37543,7 +37543,7 @@ export const __webpack_modules__ = {
37543
37543
  });
37544
37544
  })();
37545
37545
  const _vu4 = (input, _path, _exceptionable = true)=>(()=>{
37546
- if (void 0 !== input["__@toStringTag@6653"]) return _vo155(input, _path, _exceptionable);
37546
+ if (void 0 !== input["__@toStringTag@6655"]) return _vo155(input, _path, _exceptionable);
37547
37547
  if (void 0 !== input.buf) return _vo157(input, _path, _exceptionable);
37548
37548
  return _report(_exceptionable, {
37549
37549
  path: _path,
@@ -37553,7 +37553,7 @@ export const __webpack_modules__ = {
37553
37553
  })();
37554
37554
  const _vu5 = (input, _path, _exceptionable = true)=>(()=>{
37555
37555
  if (void 0 !== input.name) return _vo408(input, _path, _exceptionable);
37556
- if (void 0 !== input["__@toStringTag@6653"]) return _vo409(input, _path, _exceptionable);
37556
+ if (void 0 !== input["__@toStringTag@6655"]) return _vo409(input, _path, _exceptionable);
37557
37557
  return _report(_exceptionable, {
37558
37558
  path: _path,
37559
37559
  expected: "(LooseRsbuildPlugin | RsbuildPlugins | LooseRsbuildPlugin | Falsy)",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/rspeedy-canary",
3
- "version": "0.9.9",
3
+ "version": "0.9.10-canary-20250609-2095af91",
4
4
  "description": "A webpack/rspack-based frontend toolchain for Lynx",
5
5
  "keywords": [
6
6
  "webpack",