@lynx-js/rspeedy-canary 0.9.11-canary-20250630-51cb73dd → 0.9.11

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,6 +1,6 @@
1
1
  # @lynx-js/rspeedy
2
2
 
3
- ## 0.9.11-canary-20250630161818-51cb73dd0b77d35540644cdd2e6c37db856f0e8a
3
+ ## 0.9.11
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -8,28 +8,28 @@
8
8
 
9
9
  ```ts
10
10
  type InlineChunkTestFunction = (params: {
11
- size: number;
12
- name: string;
13
- }) => boolean;
11
+ size: number
12
+ name: string
13
+ }) => boolean
14
14
 
15
- type InlineChunkTest = RegExp | InlineChunkTestFunction;
15
+ type InlineChunkTest = RegExp | InlineChunkTestFunction
16
16
 
17
17
  type InlineChunkConfig =
18
18
  | boolean
19
19
  | InlineChunkTest
20
- | { enable?: boolean | "auto"; test: InlineChunkTest };
20
+ | { enable?: boolean | 'auto', test: InlineChunkTest }
21
21
  ```
22
22
 
23
23
  ```ts
24
- import { defineConfig } from "@lynx-js/rspeedy";
24
+ import { defineConfig } from '@lynx-js/rspeedy'
25
25
 
26
26
  export default defineConfig({
27
27
  output: {
28
28
  inlineScripts: ({ name, size }) => {
29
- return name.includes("foo") && size < 1000;
29
+ return name.includes('foo') && size < 1000
30
30
  },
31
31
  },
32
- });
32
+ })
33
33
  ```
34
34
 
35
35
  - docs: remove chunks: 'all' in comments ([#1168](https://github.com/lynx-family/lynx-stack/pull/1168))
@@ -72,13 +72,13 @@
72
72
  example:
73
73
 
74
74
  ```js
75
- import { defineConfig } from "@lynx-js/rspeedy";
75
+ import { defineConfig } from '@lynx-js/rspeedy'
76
76
 
77
77
  export default defineConfig({
78
78
  output: {
79
79
  inlineScripts: false,
80
80
  },
81
- });
81
+ })
82
82
  ```
83
83
 
84
84
  - Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
@@ -98,12 +98,12 @@
98
98
  example:
99
99
 
100
100
  ```js
101
- import { defineConfig } from "@lynx-js/rspeedy";
101
+ import { defineConfig } from '@lynx-js/rspeedy'
102
102
  export default defineConfig({
103
103
  source: {
104
- preEntry: "./src/polyfill.ts",
104
+ preEntry: './src/polyfill.ts',
105
105
  },
106
- });
106
+ })
107
107
  ```
108
108
 
109
109
  - Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
@@ -114,17 +114,17 @@
114
114
 
115
115
  ```js
116
116
  export const myPlugin = {
117
- name: "my-plugin",
117
+ name: 'my-plugin',
118
118
  setup(api) {
119
- const { callerName } = api.context;
119
+ const { callerName } = api.context
120
120
 
121
- if (callerName === "rslib") {
121
+ if (callerName === 'rslib') {
122
122
  // ...
123
- } else if (callerName === "rspeedy") {
123
+ } else if (callerName === 'rspeedy') {
124
124
  // ...
125
125
  }
126
126
  },
127
- };
127
+ }
128
128
  ```
129
129
 
130
130
  - Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
@@ -147,7 +147,7 @@
147
147
  Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
148
148
 
149
149
  ```js
150
- import { defineConfig } from "@lynx-js/rspeedy";
150
+ import { defineConfig } from '@lynx-js/rspeedy'
151
151
 
152
152
  export default defineConfig({
153
153
  tools: {
@@ -157,7 +157,7 @@
157
157
  },
158
158
  },
159
159
  },
160
- });
160
+ })
161
161
  ```
162
162
 
163
163
  See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
@@ -289,12 +289,12 @@
289
289
  example:
290
290
 
291
291
  ```js
292
- import { defineConfig } from "@lynx-js/rspeedy";
292
+ import { defineConfig } from '@lynx-js/rspeedy'
293
293
  export default defineConfig({
294
294
  server: {
295
- base: "/dist",
295
+ base: '/dist',
296
296
  },
297
- });
297
+ })
298
298
  ```
299
299
 
300
300
  - Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
@@ -347,11 +347,11 @@
347
347
  You can switch to other tools by using:
348
348
 
349
349
  ```js
350
- import { defineConfig } from "@lynx-js/rspeedy";
350
+ import { defineConfig } from '@lynx-js/rspeedy'
351
351
  import {
352
352
  CssMinimizerWebpackPlugin,
353
353
  pluginCssMinimizer,
354
- } from "@rsbuild/plugin-css-minimizer";
354
+ } from '@rsbuild/plugin-css-minimizer'
355
355
 
356
356
  export default defineConfig({
357
357
  plugins: [
@@ -364,7 +364,7 @@
364
364
  },
365
365
  }),
366
366
  ],
367
- });
367
+ })
368
368
  ```
369
369
 
370
370
  See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
@@ -374,8 +374,8 @@
374
374
  You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
375
375
 
376
376
  ```js
377
- import { defineConfig } from "@lynx-js/rspeedy";
378
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
377
+ import { defineConfig } from '@lynx-js/rspeedy'
378
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
379
379
 
380
380
  export default defineConfig({
381
381
  plugins: [
@@ -387,7 +387,7 @@
387
387
  },
388
388
  }),
389
389
  ],
390
- });
390
+ })
391
391
  ```
392
392
 
393
393
  ## 0.7.1
@@ -407,7 +407,7 @@
407
407
  You may turn it off using `output.minify.css: false`:
408
408
 
409
409
  ```js
410
- import { defineConfig } from "@lynx-js/rspeedy";
410
+ import { defineConfig } from '@lynx-js/rspeedy'
411
411
 
412
412
  export default defineConfig({
413
413
  output: {
@@ -415,18 +415,18 @@
415
415
  css: false,
416
416
  },
417
417
  },
418
- });
418
+ })
419
419
  ```
420
420
 
421
421
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
422
422
 
423
423
  ```js
424
- import { defineConfig } from "@lynx-js/rspeedy";
425
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
424
+ import { defineConfig } from '@lynx-js/rspeedy'
425
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
426
426
 
427
427
  export default defineConfig({
428
428
  plugins: [pluginCssMinimizer()],
429
- });
429
+ })
430
430
  ```
431
431
 
432
432
  - 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
@@ -453,22 +453,22 @@
453
453
  - The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
454
454
 
455
455
  ```js
456
- import { defineConfig } from "@lynx-js/rspeedy";
456
+ import { defineConfig } from '@lynx-js/rspeedy'
457
457
 
458
458
  export default defineConfig({
459
459
  dev: {
460
460
  watchFiles: [
461
461
  {
462
- type: "reload-server",
463
- paths: ["public/**/*.txt"],
462
+ type: 'reload-server',
463
+ paths: ['public/**/*.txt'],
464
464
  },
465
465
  {
466
- type: "reload-page",
467
- paths: ["public/**/*.json"],
466
+ type: 'reload-page',
467
+ paths: ['public/**/*.json'],
468
468
  },
469
469
  ],
470
470
  },
471
- });
471
+ })
472
472
  ```
473
473
 
474
474
  - be9b003: Add `source.exclude`.
package/dist/index.js CHANGED
@@ -112,7 +112,7 @@ var __webpack_modules__ = {
112
112
  });
113
113
  var core_ = __webpack_require__("@rsbuild/core");
114
114
  var package_namespaceObject = {
115
- i8: "0.9.10"
115
+ i8: "0.9.11"
116
116
  };
117
117
  const version = package_namespaceObject.i8;
118
118
  const rspackVersion = core_.rspack.rspackVersion;
@@ -40,7 +40,7 @@ export const __webpack_modules__ = {
40
40
  });
41
41
  var core_ = __webpack_require__("@rsbuild/core");
42
42
  var package_namespaceObject = {
43
- i8: "0.9.10"
43
+ i8: "0.9.11"
44
44
  };
45
45
  const version = package_namespaceObject.i8;
46
46
  const rspackVersion = core_.rspack.rspackVersion;
@@ -10,7 +10,7 @@ export const __webpack_modules__ = {
10
10
  });
11
11
  var core_ = __webpack_require__("@rsbuild/core");
12
12
  var package_namespaceObject = {
13
- i8: "0.9.10"
13
+ i8: "0.9.11"
14
14
  };
15
15
  const version = package_namespaceObject.i8;
16
16
  const rspackVersion = core_.rspack.rspackVersion;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/rspeedy-canary",
3
- "version": "0.9.11-canary-20250630-51cb73dd",
3
+ "version": "0.9.11",
4
4
  "description": "A webpack/rspack-based frontend toolchain for Lynx",
5
5
  "keywords": [
6
6
  "webpack",