@lynx-js/rspeedy-canary 0.10.3-canary-20250728-58c82e92 → 0.10.3

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.10.3-canary-20250728164554-58c82e92d1f1957d3178bb9160f0dd8f675f5c96
3
+ ## 0.10.3
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -43,28 +43,28 @@
43
43
 
44
44
  ```ts
45
45
  type InlineChunkTestFunction = (params: {
46
- size: number;
47
- name: string;
48
- }) => boolean;
46
+ size: number
47
+ name: string
48
+ }) => boolean
49
49
 
50
- type InlineChunkTest = RegExp | InlineChunkTestFunction;
50
+ type InlineChunkTest = RegExp | InlineChunkTestFunction
51
51
 
52
52
  type InlineChunkConfig =
53
53
  | boolean
54
54
  | InlineChunkTest
55
- | { enable?: boolean | "auto"; test: InlineChunkTest };
55
+ | { enable?: boolean | 'auto', test: InlineChunkTest }
56
56
  ```
57
57
 
58
58
  ```ts
59
- import { defineConfig } from "@lynx-js/rspeedy";
59
+ import { defineConfig } from '@lynx-js/rspeedy'
60
60
 
61
61
  export default defineConfig({
62
62
  output: {
63
63
  inlineScripts: ({ name, size }) => {
64
- return name.includes("foo") && size < 1000;
64
+ return name.includes('foo') && size < 1000
65
65
  },
66
66
  },
67
- });
67
+ })
68
68
  ```
69
69
 
70
70
  - docs: remove chunks: 'all' in comments ([#1168](https://github.com/lynx-family/lynx-stack/pull/1168))
@@ -107,13 +107,13 @@
107
107
  example:
108
108
 
109
109
  ```js
110
- import { defineConfig } from "@lynx-js/rspeedy";
110
+ import { defineConfig } from '@lynx-js/rspeedy'
111
111
 
112
112
  export default defineConfig({
113
113
  output: {
114
114
  inlineScripts: false,
115
115
  },
116
- });
116
+ })
117
117
  ```
118
118
 
119
119
  - Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
@@ -133,12 +133,12 @@
133
133
  example:
134
134
 
135
135
  ```js
136
- import { defineConfig } from "@lynx-js/rspeedy";
136
+ import { defineConfig } from '@lynx-js/rspeedy'
137
137
  export default defineConfig({
138
138
  source: {
139
- preEntry: "./src/polyfill.ts",
139
+ preEntry: './src/polyfill.ts',
140
140
  },
141
- });
141
+ })
142
142
  ```
143
143
 
144
144
  - Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
@@ -149,17 +149,17 @@
149
149
 
150
150
  ```js
151
151
  export const myPlugin = {
152
- name: "my-plugin",
152
+ name: 'my-plugin',
153
153
  setup(api) {
154
- const { callerName } = api.context;
154
+ const { callerName } = api.context
155
155
 
156
- if (callerName === "rslib") {
156
+ if (callerName === 'rslib') {
157
157
  // ...
158
- } else if (callerName === "rspeedy") {
158
+ } else if (callerName === 'rspeedy') {
159
159
  // ...
160
160
  }
161
161
  },
162
- };
162
+ }
163
163
  ```
164
164
 
165
165
  - Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
@@ -182,7 +182,7 @@
182
182
  Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
183
183
 
184
184
  ```js
185
- import { defineConfig } from "@lynx-js/rspeedy";
185
+ import { defineConfig } from '@lynx-js/rspeedy'
186
186
 
187
187
  export default defineConfig({
188
188
  tools: {
@@ -192,7 +192,7 @@
192
192
  },
193
193
  },
194
194
  },
195
- });
195
+ })
196
196
  ```
197
197
 
198
198
  See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
@@ -324,12 +324,12 @@
324
324
  example:
325
325
 
326
326
  ```js
327
- import { defineConfig } from "@lynx-js/rspeedy";
327
+ import { defineConfig } from '@lynx-js/rspeedy'
328
328
  export default defineConfig({
329
329
  server: {
330
- base: "/dist",
330
+ base: '/dist',
331
331
  },
332
- });
332
+ })
333
333
  ```
334
334
 
335
335
  - Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
@@ -382,11 +382,11 @@
382
382
  You can switch to other tools by using:
383
383
 
384
384
  ```js
385
- import { defineConfig } from "@lynx-js/rspeedy";
385
+ import { defineConfig } from '@lynx-js/rspeedy'
386
386
  import {
387
387
  CssMinimizerWebpackPlugin,
388
388
  pluginCssMinimizer,
389
- } from "@rsbuild/plugin-css-minimizer";
389
+ } from '@rsbuild/plugin-css-minimizer'
390
390
 
391
391
  export default defineConfig({
392
392
  plugins: [
@@ -399,7 +399,7 @@
399
399
  },
400
400
  }),
401
401
  ],
402
- });
402
+ })
403
403
  ```
404
404
 
405
405
  See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
@@ -409,8 +409,8 @@
409
409
  You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
410
410
 
411
411
  ```js
412
- import { defineConfig } from "@lynx-js/rspeedy";
413
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
412
+ import { defineConfig } from '@lynx-js/rspeedy'
413
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
414
414
 
415
415
  export default defineConfig({
416
416
  plugins: [
@@ -422,7 +422,7 @@
422
422
  },
423
423
  }),
424
424
  ],
425
- });
425
+ })
426
426
  ```
427
427
 
428
428
  ## 0.7.1
@@ -442,7 +442,7 @@
442
442
  You may turn it off using `output.minify.css: false`:
443
443
 
444
444
  ```js
445
- import { defineConfig } from "@lynx-js/rspeedy";
445
+ import { defineConfig } from '@lynx-js/rspeedy'
446
446
 
447
447
  export default defineConfig({
448
448
  output: {
@@ -450,18 +450,18 @@
450
450
  css: false,
451
451
  },
452
452
  },
453
- });
453
+ })
454
454
  ```
455
455
 
456
456
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
457
457
 
458
458
  ```js
459
- import { defineConfig } from "@lynx-js/rspeedy";
460
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
459
+ import { defineConfig } from '@lynx-js/rspeedy'
460
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
461
461
 
462
462
  export default defineConfig({
463
463
  plugins: [pluginCssMinimizer()],
464
- });
464
+ })
465
465
  ```
466
466
 
467
467
  - 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
@@ -488,22 +488,22 @@
488
488
  - The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
489
489
 
490
490
  ```js
491
- import { defineConfig } from "@lynx-js/rspeedy";
491
+ import { defineConfig } from '@lynx-js/rspeedy'
492
492
 
493
493
  export default defineConfig({
494
494
  dev: {
495
495
  watchFiles: [
496
496
  {
497
- type: "reload-server",
498
- paths: ["public/**/*.txt"],
497
+ type: 'reload-server',
498
+ paths: ['public/**/*.txt'],
499
499
  },
500
500
  {
501
- type: "reload-page",
502
- paths: ["public/**/*.json"],
501
+ type: 'reload-page',
502
+ paths: ['public/**/*.json'],
503
503
  },
504
504
  ],
505
505
  },
506
- });
506
+ })
507
507
  ```
508
508
 
509
509
  - 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.10.2"
115
+ i8: "0.10.3"
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.10.2"
43
+ i8: "0.10.3"
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.10.2"
13
+ i8: "0.10.3"
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.10.3-canary-20250728-58c82e92",
3
+ "version": "0.10.3",
4
4
  "description": "A webpack/rspack-based frontend toolchain for Lynx",
5
5
  "keywords": [
6
6
  "webpack",