@lynx-js/rspeedy-canary 0.9.5 → 0.9.6-canary-20250519-fe5983d3

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,12 @@
1
1
  # @lynx-js/rspeedy
2
2
 
3
+ ## 0.9.6-canary-20250519100353-fe5983d3a7efec7140d8f46380fda79464be75df
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`5b67bde`](https://github.com/lynx-family/lynx-stack/commit/5b67bde8a7286b9dcc727c9707cf83020bb5abfa)]:
8
+ - @lynx-js/chunk-loading-webpack-plugin@0.2.1-canary-20250519100353-fe5983d3a7efec7140d8f46380fda79464be75df
9
+
3
10
  ## 0.9.5
4
11
 
5
12
  ### Patch Changes
@@ -12,12 +19,12 @@
12
19
  example:
13
20
 
14
21
  ```js
15
- import { defineConfig } from '@lynx-js/rspeedy'
22
+ import { defineConfig } from "@lynx-js/rspeedy";
16
23
  export default defineConfig({
17
24
  source: {
18
- preEntry: './src/polyfill.ts',
25
+ preEntry: "./src/polyfill.ts",
19
26
  },
20
- })
27
+ });
21
28
  ```
22
29
 
23
30
  - Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
@@ -28,17 +35,17 @@
28
35
 
29
36
  ```js
30
37
  export const myPlugin = {
31
- name: 'my-plugin',
38
+ name: "my-plugin",
32
39
  setup(api) {
33
- const { callerName } = api.context
40
+ const { callerName } = api.context;
34
41
 
35
- if (callerName === 'rslib') {
42
+ if (callerName === "rslib") {
36
43
  // ...
37
- } else if (callerName === 'rspeedy') {
44
+ } else if (callerName === "rspeedy") {
38
45
  // ...
39
46
  }
40
47
  },
41
- }
48
+ };
42
49
  ```
43
50
 
44
51
  - Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
@@ -61,7 +68,7 @@
61
68
  Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
62
69
 
63
70
  ```js
64
- import { defineConfig } from '@lynx-js/rspeedy'
71
+ import { defineConfig } from "@lynx-js/rspeedy";
65
72
 
66
73
  export default defineConfig({
67
74
  tools: {
@@ -71,7 +78,7 @@
71
78
  },
72
79
  },
73
80
  },
74
- })
81
+ });
75
82
  ```
76
83
 
77
84
  See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
@@ -203,12 +210,12 @@
203
210
  example:
204
211
 
205
212
  ```js
206
- import { defineConfig } from '@lynx-js/rspeedy'
213
+ import { defineConfig } from "@lynx-js/rspeedy";
207
214
  export default defineConfig({
208
215
  server: {
209
- base: '/dist',
216
+ base: "/dist",
210
217
  },
211
- })
218
+ });
212
219
  ```
213
220
 
214
221
  - Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
@@ -261,11 +268,11 @@
261
268
  You can switch to other tools by using:
262
269
 
263
270
  ```js
264
- import { defineConfig } from '@lynx-js/rspeedy'
271
+ import { defineConfig } from "@lynx-js/rspeedy";
265
272
  import {
266
273
  CssMinimizerWebpackPlugin,
267
274
  pluginCssMinimizer,
268
- } from '@rsbuild/plugin-css-minimizer'
275
+ } from "@rsbuild/plugin-css-minimizer";
269
276
 
270
277
  export default defineConfig({
271
278
  plugins: [
@@ -278,7 +285,7 @@
278
285
  },
279
286
  }),
280
287
  ],
281
- })
288
+ });
282
289
  ```
283
290
 
284
291
  See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
@@ -288,8 +295,8 @@
288
295
  You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
289
296
 
290
297
  ```js
291
- import { defineConfig } from '@lynx-js/rspeedy'
292
- import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
298
+ import { defineConfig } from "@lynx-js/rspeedy";
299
+ import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
293
300
 
294
301
  export default defineConfig({
295
302
  plugins: [
@@ -301,7 +308,7 @@
301
308
  },
302
309
  }),
303
310
  ],
304
- })
311
+ });
305
312
  ```
306
313
 
307
314
  ## 0.7.1
@@ -321,7 +328,7 @@
321
328
  You may turn it off using `output.minify.css: false`:
322
329
 
323
330
  ```js
324
- import { defineConfig } from '@lynx-js/rspeedy'
331
+ import { defineConfig } from "@lynx-js/rspeedy";
325
332
 
326
333
  export default defineConfig({
327
334
  output: {
@@ -329,18 +336,18 @@
329
336
  css: false,
330
337
  },
331
338
  },
332
- })
339
+ });
333
340
  ```
334
341
 
335
342
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
336
343
 
337
344
  ```js
338
- import { defineConfig } from '@lynx-js/rspeedy'
339
- import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
345
+ import { defineConfig } from "@lynx-js/rspeedy";
346
+ import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
340
347
 
341
348
  export default defineConfig({
342
349
  plugins: [pluginCssMinimizer()],
343
- })
350
+ });
344
351
  ```
345
352
 
346
353
  - 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
@@ -367,22 +374,22 @@
367
374
  - The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
368
375
 
369
376
  ```js
370
- import { defineConfig } from '@lynx-js/rspeedy'
377
+ import { defineConfig } from "@lynx-js/rspeedy";
371
378
 
372
379
  export default defineConfig({
373
380
  dev: {
374
381
  watchFiles: [
375
382
  {
376
- type: 'reload-server',
377
- paths: ['public/**/*.txt'],
383
+ type: "reload-server",
384
+ paths: ["public/**/*.txt"],
378
385
  },
379
386
  {
380
- type: 'reload-page',
381
- paths: ['public/**/*.json'],
387
+ type: "reload-page",
388
+ paths: ["public/**/*.json"],
382
389
  },
383
390
  ],
384
391
  },
385
- })
392
+ });
386
393
  ```
387
394
 
388
395
  - 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@6634"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
1417
+ const _io50 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6630"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
1418
1418
  if ([
1419
- "__@toStringTag@6634"
1419
+ "__@toStringTag@6630"
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@6634"] && 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@6630"] && 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@6634"
2987
+ "__@toStringTag@6630"
2988
2988
  ].some((prop)=>key === prop)) return true;
2989
2989
  const value = input[key];
2990
2990
  if (void 0 === value) return true;
@@ -6121,9 +6121,9 @@ export const __webpack_modules__ = {
6121
6121
  if (void 0 === value) return true;
6122
6122
  return false;
6123
6123
  }));
6124
- const _io405 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6634"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
6124
+ const _io405 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6630"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
6125
6125
  if ([
6126
- "__@toStringTag@6634"
6126
+ "__@toStringTag@6630"
6127
6127
  ].some((prop)=>key === prop)) return true;
6128
6128
  const value = input[key];
6129
6129
  if (void 0 === value) return true;
@@ -6714,18 +6714,18 @@ export const __webpack_modules__ = {
6714
6714
  return false;
6715
6715
  })();
6716
6716
  const _iu3 = (input, _exceptionable = true)=>(()=>{
6717
- if (void 0 !== input["__@toStringTag@6634"]) return _io155(input, _exceptionable);
6717
+ if (void 0 !== input["__@toStringTag@6630"]) return _io155(input, _exceptionable);
6718
6718
  if (void 0 !== input.pem) return _io156(input, _exceptionable);
6719
6719
  return false;
6720
6720
  })();
6721
6721
  const _iu4 = (input, _exceptionable = true)=>(()=>{
6722
- if (void 0 !== input["__@toStringTag@6634"]) return _io155(input, _exceptionable);
6722
+ if (void 0 !== input["__@toStringTag@6630"]) return _io155(input, _exceptionable);
6723
6723
  if (void 0 !== input.buf) return _io157(input, _exceptionable);
6724
6724
  return false;
6725
6725
  })();
6726
6726
  const _iu5 = (input, _exceptionable = true)=>(()=>{
6727
6727
  if (void 0 !== input.name) return _io404(input, _exceptionable);
6728
- if (void 0 !== input["__@toStringTag@6634"]) return _io405(input, _exceptionable);
6728
+ if (void 0 !== input["__@toStringTag@6630"]) return _io405(input, _exceptionable);
6729
6729
  return false;
6730
6730
  })();
6731
6731
  const _iu6 = (input, _exceptionable = true)=>(()=>{
@@ -9469,14 +9469,14 @@ export const __webpack_modules__ = {
9469
9469
  }).every((flag)=>flag)
9470
9470
  ].every((flag)=>flag);
9471
9471
  const _vo50 = (input, _path, _exceptionable = true)=>[
9472
- "string" == typeof input["__@toStringTag@6634"] || _report(_exceptionable, {
9473
- path: _path + "[\"__@toStringTag@6634\"]",
9472
+ "string" == typeof input["__@toStringTag@6630"] || _report(_exceptionable, {
9473
+ path: _path + "[\"__@toStringTag@6630\"]",
9474
9474
  expected: "string",
9475
- value: input["__@toStringTag@6634"]
9475
+ value: input["__@toStringTag@6630"]
9476
9476
  }),
9477
9477
  1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
9478
9478
  if ([
9479
- "__@toStringTag@6634"
9479
+ "__@toStringTag@6630"
9480
9480
  ].some((prop)=>key === prop)) return true;
9481
9481
  const value = input[key];
9482
9482
  if (void 0 === value) return true;
@@ -17835,10 +17835,10 @@ export const __webpack_modules__ = {
17835
17835
  expected: "number",
17836
17836
  value: input.length
17837
17837
  }),
17838
- "Uint8Array" === input["__@toStringTag@6634"] || _report(_exceptionable, {
17839
- path: _path + "[\"__@toStringTag@6634\"]",
17838
+ "Uint8Array" === input["__@toStringTag@6630"] || _report(_exceptionable, {
17839
+ path: _path + "[\"__@toStringTag@6630\"]",
17840
17840
  expected: "\"Uint8Array\"",
17841
- value: input["__@toStringTag@6634"]
17841
+ value: input["__@toStringTag@6630"]
17842
17842
  }),
17843
17843
  false === _exceptionable || Object.keys(input).map((key)=>{
17844
17844
  if ([
@@ -17847,7 +17847,7 @@ export const __webpack_modules__ = {
17847
17847
  "byteLength",
17848
17848
  "byteOffset",
17849
17849
  "length",
17850
- "__@toStringTag@6634"
17850
+ "__@toStringTag@6630"
17851
17851
  ].some((prop)=>key === prop)) return true;
17852
17852
  const value = input[key];
17853
17853
  if (void 0 === value) return true;
@@ -34444,14 +34444,14 @@ export const __webpack_modules__ = {
34444
34444
  }).every((flag)=>flag)
34445
34445
  ].every((flag)=>flag);
34446
34446
  const _vo405 = (input, _path, _exceptionable = true)=>[
34447
- "string" == typeof input["__@toStringTag@6634"] || _report(_exceptionable, {
34448
- path: _path + "[\"__@toStringTag@6634\"]",
34447
+ "string" == typeof input["__@toStringTag@6630"] || _report(_exceptionable, {
34448
+ path: _path + "[\"__@toStringTag@6630\"]",
34449
34449
  expected: "string",
34450
- value: input["__@toStringTag@6634"]
34450
+ value: input["__@toStringTag@6630"]
34451
34451
  }),
34452
34452
  1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
34453
34453
  if ([
34454
- "__@toStringTag@6634"
34454
+ "__@toStringTag@6630"
34455
34455
  ].some((prop)=>key === prop)) return true;
34456
34456
  const value = input[key];
34457
34457
  if (void 0 === value) return true;
@@ -37150,7 +37150,7 @@ export const __webpack_modules__ = {
37150
37150
  });
37151
37151
  })();
37152
37152
  const _vu3 = (input, _path, _exceptionable = true)=>(()=>{
37153
- if (void 0 !== input["__@toStringTag@6634"]) return _vo155(input, _path, _exceptionable);
37153
+ if (void 0 !== input["__@toStringTag@6630"]) return _vo155(input, _path, _exceptionable);
37154
37154
  if (void 0 !== input.pem) return _vo156(input, _path, _exceptionable);
37155
37155
  return _report(_exceptionable, {
37156
37156
  path: _path,
@@ -37159,7 +37159,7 @@ export const __webpack_modules__ = {
37159
37159
  });
37160
37160
  })();
37161
37161
  const _vu4 = (input, _path, _exceptionable = true)=>(()=>{
37162
- if (void 0 !== input["__@toStringTag@6634"]) return _vo155(input, _path, _exceptionable);
37162
+ if (void 0 !== input["__@toStringTag@6630"]) return _vo155(input, _path, _exceptionable);
37163
37163
  if (void 0 !== input.buf) return _vo157(input, _path, _exceptionable);
37164
37164
  return _report(_exceptionable, {
37165
37165
  path: _path,
@@ -37169,7 +37169,7 @@ export const __webpack_modules__ = {
37169
37169
  })();
37170
37170
  const _vu5 = (input, _path, _exceptionable = true)=>(()=>{
37171
37171
  if (void 0 !== input.name) return _vo404(input, _path, _exceptionable);
37172
- if (void 0 !== input["__@toStringTag@6634"]) return _vo405(input, _path, _exceptionable);
37172
+ if (void 0 !== input["__@toStringTag@6630"]) return _vo405(input, _path, _exceptionable);
37173
37173
  return _report(_exceptionable, {
37174
37174
  path: _path,
37175
37175
  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.5",
3
+ "version": "0.9.6-canary-20250519-fe5983d3",
4
4
  "description": "A webpack/rspack-based frontend toolchain for Lynx",
5
5
  "keywords": [
6
6
  "webpack",
@@ -46,7 +46,7 @@
46
46
  "README.md"
47
47
  ],
48
48
  "dependencies": {
49
- "@lynx-js/chunk-loading-webpack-plugin": "npm:@lynx-js/chunk-loading-webpack-plugin-canary@0.2.0",
49
+ "@lynx-js/chunk-loading-webpack-plugin": "npm:@lynx-js/chunk-loading-webpack-plugin-canary@0.2.1-canary-20250519-fe5983d3",
50
50
  "@lynx-js/webpack-dev-transport": "npm:@lynx-js/webpack-dev-transport-canary@0.1.3",
51
51
  "@lynx-js/websocket": "npm:@lynx-js/websocket-canary@0.0.4",
52
52
  "@rsbuild/core": "1.3.20",