@lynx-js/rspeedy-canary 0.10.1 → 0.10.2-canary-20250716-cb7feb6e

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,11 @@
1
1
  # @lynx-js/rspeedy
2
2
 
3
+ ## 0.10.2-canary-20250716073530-cb7feb6e8cc9f4b83ac3147bd3e5a82059caa06a
4
+
5
+ ### Patch Changes
6
+
7
+ - Bump Rsbuild v1.4.6 with Rspack v1.4.8. ([#1282](https://github.com/lynx-family/lynx-stack/pull/1282))
8
+
3
9
  ## 0.10.1
4
10
 
5
11
  ### Patch Changes
@@ -31,28 +37,28 @@
31
37
 
32
38
  ```ts
33
39
  type InlineChunkTestFunction = (params: {
34
- size: number
35
- name: string
36
- }) => boolean
40
+ size: number;
41
+ name: string;
42
+ }) => boolean;
37
43
 
38
- type InlineChunkTest = RegExp | InlineChunkTestFunction
44
+ type InlineChunkTest = RegExp | InlineChunkTestFunction;
39
45
 
40
46
  type InlineChunkConfig =
41
47
  | boolean
42
48
  | InlineChunkTest
43
- | { enable?: boolean | 'auto', test: InlineChunkTest }
49
+ | { enable?: boolean | "auto"; test: InlineChunkTest };
44
50
  ```
45
51
 
46
52
  ```ts
47
- import { defineConfig } from '@lynx-js/rspeedy'
53
+ import { defineConfig } from "@lynx-js/rspeedy";
48
54
 
49
55
  export default defineConfig({
50
56
  output: {
51
57
  inlineScripts: ({ name, size }) => {
52
- return name.includes('foo') && size < 1000
58
+ return name.includes("foo") && size < 1000;
53
59
  },
54
60
  },
55
- })
61
+ });
56
62
  ```
57
63
 
58
64
  - docs: remove chunks: 'all' in comments ([#1168](https://github.com/lynx-family/lynx-stack/pull/1168))
@@ -95,13 +101,13 @@
95
101
  example:
96
102
 
97
103
  ```js
98
- import { defineConfig } from '@lynx-js/rspeedy'
104
+ import { defineConfig } from "@lynx-js/rspeedy";
99
105
 
100
106
  export default defineConfig({
101
107
  output: {
102
108
  inlineScripts: false,
103
109
  },
104
- })
110
+ });
105
111
  ```
106
112
 
107
113
  - Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
@@ -121,12 +127,12 @@
121
127
  example:
122
128
 
123
129
  ```js
124
- import { defineConfig } from '@lynx-js/rspeedy'
130
+ import { defineConfig } from "@lynx-js/rspeedy";
125
131
  export default defineConfig({
126
132
  source: {
127
- preEntry: './src/polyfill.ts',
133
+ preEntry: "./src/polyfill.ts",
128
134
  },
129
- })
135
+ });
130
136
  ```
131
137
 
132
138
  - Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
@@ -137,17 +143,17 @@
137
143
 
138
144
  ```js
139
145
  export const myPlugin = {
140
- name: 'my-plugin',
146
+ name: "my-plugin",
141
147
  setup(api) {
142
- const { callerName } = api.context
148
+ const { callerName } = api.context;
143
149
 
144
- if (callerName === 'rslib') {
150
+ if (callerName === "rslib") {
145
151
  // ...
146
- } else if (callerName === 'rspeedy') {
152
+ } else if (callerName === "rspeedy") {
147
153
  // ...
148
154
  }
149
155
  },
150
- }
156
+ };
151
157
  ```
152
158
 
153
159
  - Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
@@ -170,7 +176,7 @@
170
176
  Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
171
177
 
172
178
  ```js
173
- import { defineConfig } from '@lynx-js/rspeedy'
179
+ import { defineConfig } from "@lynx-js/rspeedy";
174
180
 
175
181
  export default defineConfig({
176
182
  tools: {
@@ -180,7 +186,7 @@
180
186
  },
181
187
  },
182
188
  },
183
- })
189
+ });
184
190
  ```
185
191
 
186
192
  See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
@@ -312,12 +318,12 @@
312
318
  example:
313
319
 
314
320
  ```js
315
- import { defineConfig } from '@lynx-js/rspeedy'
321
+ import { defineConfig } from "@lynx-js/rspeedy";
316
322
  export default defineConfig({
317
323
  server: {
318
- base: '/dist',
324
+ base: "/dist",
319
325
  },
320
- })
326
+ });
321
327
  ```
322
328
 
323
329
  - Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
@@ -370,11 +376,11 @@
370
376
  You can switch to other tools by using:
371
377
 
372
378
  ```js
373
- import { defineConfig } from '@lynx-js/rspeedy'
379
+ import { defineConfig } from "@lynx-js/rspeedy";
374
380
  import {
375
381
  CssMinimizerWebpackPlugin,
376
382
  pluginCssMinimizer,
377
- } from '@rsbuild/plugin-css-minimizer'
383
+ } from "@rsbuild/plugin-css-minimizer";
378
384
 
379
385
  export default defineConfig({
380
386
  plugins: [
@@ -387,7 +393,7 @@
387
393
  },
388
394
  }),
389
395
  ],
390
- })
396
+ });
391
397
  ```
392
398
 
393
399
  See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
@@ -397,8 +403,8 @@
397
403
  You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
398
404
 
399
405
  ```js
400
- import { defineConfig } from '@lynx-js/rspeedy'
401
- import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
406
+ import { defineConfig } from "@lynx-js/rspeedy";
407
+ import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
402
408
 
403
409
  export default defineConfig({
404
410
  plugins: [
@@ -410,7 +416,7 @@
410
416
  },
411
417
  }),
412
418
  ],
413
- })
419
+ });
414
420
  ```
415
421
 
416
422
  ## 0.7.1
@@ -430,7 +436,7 @@
430
436
  You may turn it off using `output.minify.css: false`:
431
437
 
432
438
  ```js
433
- import { defineConfig } from '@lynx-js/rspeedy'
439
+ import { defineConfig } from "@lynx-js/rspeedy";
434
440
 
435
441
  export default defineConfig({
436
442
  output: {
@@ -438,18 +444,18 @@
438
444
  css: false,
439
445
  },
440
446
  },
441
- })
447
+ });
442
448
  ```
443
449
 
444
450
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
445
451
 
446
452
  ```js
447
- import { defineConfig } from '@lynx-js/rspeedy'
448
- import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
453
+ import { defineConfig } from "@lynx-js/rspeedy";
454
+ import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
449
455
 
450
456
  export default defineConfig({
451
457
  plugins: [pluginCssMinimizer()],
452
- })
458
+ });
453
459
  ```
454
460
 
455
461
  - 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
@@ -476,22 +482,22 @@
476
482
  - The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
477
483
 
478
484
  ```js
479
- import { defineConfig } from '@lynx-js/rspeedy'
485
+ import { defineConfig } from "@lynx-js/rspeedy";
480
486
 
481
487
  export default defineConfig({
482
488
  dev: {
483
489
  watchFiles: [
484
490
  {
485
- type: 'reload-server',
486
- paths: ['public/**/*.txt'],
491
+ type: "reload-server",
492
+ paths: ["public/**/*.txt"],
487
493
  },
488
494
  {
489
- type: 'reload-page',
490
- paths: ['public/**/*.json'],
495
+ type: "reload-page",
496
+ paths: ["public/**/*.json"],
491
497
  },
492
498
  ],
493
499
  },
494
- })
500
+ });
495
501
  ```
496
502
 
497
503
  - be9b003: Add `source.exclude`.