@lynx-js/rspeedy-canary 0.9.11 → 0.10.0-canary-20250703-59476a58

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,13 @@
1
1
  # @lynx-js/rspeedy
2
2
 
3
+ ## 0.10.0-canary-20250703133336-59476a581300b2b84b80cb424aa5ac40c0dfe79c
4
+
5
+ ### Minor Changes
6
+
7
+ - Bump Rsbuild v1.4.3 with Rspack v1.4.2. ([#1204](https://github.com/lynx-family/lynx-stack/pull/1204))
8
+
9
+ See [Announcing Rspack 1.4](https://rspack.rs/blog/announcing-1-4) for more details.
10
+
3
11
  ## 0.9.11
4
12
 
5
13
  ### Patch Changes
@@ -8,28 +16,28 @@
8
16
 
9
17
  ```ts
10
18
  type InlineChunkTestFunction = (params: {
11
- size: number
12
- name: string
13
- }) => boolean
19
+ size: number;
20
+ name: string;
21
+ }) => boolean;
14
22
 
15
- type InlineChunkTest = RegExp | InlineChunkTestFunction
23
+ type InlineChunkTest = RegExp | InlineChunkTestFunction;
16
24
 
17
25
  type InlineChunkConfig =
18
26
  | boolean
19
27
  | InlineChunkTest
20
- | { enable?: boolean | 'auto', test: InlineChunkTest }
28
+ | { enable?: boolean | "auto"; test: InlineChunkTest };
21
29
  ```
22
30
 
23
31
  ```ts
24
- import { defineConfig } from '@lynx-js/rspeedy'
32
+ import { defineConfig } from "@lynx-js/rspeedy";
25
33
 
26
34
  export default defineConfig({
27
35
  output: {
28
36
  inlineScripts: ({ name, size }) => {
29
- return name.includes('foo') && size < 1000
37
+ return name.includes("foo") && size < 1000;
30
38
  },
31
39
  },
32
- })
40
+ });
33
41
  ```
34
42
 
35
43
  - docs: remove chunks: 'all' in comments ([#1168](https://github.com/lynx-family/lynx-stack/pull/1168))
@@ -72,13 +80,13 @@
72
80
  example:
73
81
 
74
82
  ```js
75
- import { defineConfig } from '@lynx-js/rspeedy'
83
+ import { defineConfig } from "@lynx-js/rspeedy";
76
84
 
77
85
  export default defineConfig({
78
86
  output: {
79
87
  inlineScripts: false,
80
88
  },
81
- })
89
+ });
82
90
  ```
83
91
 
84
92
  - Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
@@ -98,12 +106,12 @@
98
106
  example:
99
107
 
100
108
  ```js
101
- import { defineConfig } from '@lynx-js/rspeedy'
109
+ import { defineConfig } from "@lynx-js/rspeedy";
102
110
  export default defineConfig({
103
111
  source: {
104
- preEntry: './src/polyfill.ts',
112
+ preEntry: "./src/polyfill.ts",
105
113
  },
106
- })
114
+ });
107
115
  ```
108
116
 
109
117
  - Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
@@ -114,17 +122,17 @@
114
122
 
115
123
  ```js
116
124
  export const myPlugin = {
117
- name: 'my-plugin',
125
+ name: "my-plugin",
118
126
  setup(api) {
119
- const { callerName } = api.context
127
+ const { callerName } = api.context;
120
128
 
121
- if (callerName === 'rslib') {
129
+ if (callerName === "rslib") {
122
130
  // ...
123
- } else if (callerName === 'rspeedy') {
131
+ } else if (callerName === "rspeedy") {
124
132
  // ...
125
133
  }
126
134
  },
127
- }
135
+ };
128
136
  ```
129
137
 
130
138
  - Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
@@ -147,7 +155,7 @@
147
155
  Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
148
156
 
149
157
  ```js
150
- import { defineConfig } from '@lynx-js/rspeedy'
158
+ import { defineConfig } from "@lynx-js/rspeedy";
151
159
 
152
160
  export default defineConfig({
153
161
  tools: {
@@ -157,7 +165,7 @@
157
165
  },
158
166
  },
159
167
  },
160
- })
168
+ });
161
169
  ```
162
170
 
163
171
  See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
@@ -289,12 +297,12 @@
289
297
  example:
290
298
 
291
299
  ```js
292
- import { defineConfig } from '@lynx-js/rspeedy'
300
+ import { defineConfig } from "@lynx-js/rspeedy";
293
301
  export default defineConfig({
294
302
  server: {
295
- base: '/dist',
303
+ base: "/dist",
296
304
  },
297
- })
305
+ });
298
306
  ```
299
307
 
300
308
  - Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
@@ -347,11 +355,11 @@
347
355
  You can switch to other tools by using:
348
356
 
349
357
  ```js
350
- import { defineConfig } from '@lynx-js/rspeedy'
358
+ import { defineConfig } from "@lynx-js/rspeedy";
351
359
  import {
352
360
  CssMinimizerWebpackPlugin,
353
361
  pluginCssMinimizer,
354
- } from '@rsbuild/plugin-css-minimizer'
362
+ } from "@rsbuild/plugin-css-minimizer";
355
363
 
356
364
  export default defineConfig({
357
365
  plugins: [
@@ -364,7 +372,7 @@
364
372
  },
365
373
  }),
366
374
  ],
367
- })
375
+ });
368
376
  ```
369
377
 
370
378
  See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
@@ -374,8 +382,8 @@
374
382
  You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
375
383
 
376
384
  ```js
377
- import { defineConfig } from '@lynx-js/rspeedy'
378
- import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
385
+ import { defineConfig } from "@lynx-js/rspeedy";
386
+ import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
379
387
 
380
388
  export default defineConfig({
381
389
  plugins: [
@@ -387,7 +395,7 @@
387
395
  },
388
396
  }),
389
397
  ],
390
- })
398
+ });
391
399
  ```
392
400
 
393
401
  ## 0.7.1
@@ -407,7 +415,7 @@
407
415
  You may turn it off using `output.minify.css: false`:
408
416
 
409
417
  ```js
410
- import { defineConfig } from '@lynx-js/rspeedy'
418
+ import { defineConfig } from "@lynx-js/rspeedy";
411
419
 
412
420
  export default defineConfig({
413
421
  output: {
@@ -415,18 +423,18 @@
415
423
  css: false,
416
424
  },
417
425
  },
418
- })
426
+ });
419
427
  ```
420
428
 
421
429
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
422
430
 
423
431
  ```js
424
- import { defineConfig } from '@lynx-js/rspeedy'
425
- import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
432
+ import { defineConfig } from "@lynx-js/rspeedy";
433
+ import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
426
434
 
427
435
  export default defineConfig({
428
436
  plugins: [pluginCssMinimizer()],
429
- })
437
+ });
430
438
  ```
431
439
 
432
440
  - 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
@@ -453,22 +461,22 @@
453
461
  - The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
454
462
 
455
463
  ```js
456
- import { defineConfig } from '@lynx-js/rspeedy'
464
+ import { defineConfig } from "@lynx-js/rspeedy";
457
465
 
458
466
  export default defineConfig({
459
467
  dev: {
460
468
  watchFiles: [
461
469
  {
462
- type: 'reload-server',
463
- paths: ['public/**/*.txt'],
470
+ type: "reload-server",
471
+ paths: ["public/**/*.txt"],
464
472
  },
465
473
  {
466
- type: 'reload-page',
467
- paths: ['public/**/*.json'],
474
+ type: "reload-page",
475
+ paths: ["public/**/*.json"],
468
476
  },
469
477
  ],
470
478
  },
471
- })
479
+ });
472
480
  ```
473
481
 
474
482
  - be9b003: Add `source.exclude`.