@lynx-js/rspeedy-canary 0.10.7-canary-20250815-7e47c4a7 → 0.10.7

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.7-canary-20250815124729-7e47c4a777441a6782bc8aac31298b9af34b6f3e
3
+ ## 0.10.7
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -77,28 +77,28 @@
77
77
 
78
78
  ```ts
79
79
  type InlineChunkTestFunction = (params: {
80
- size: number;
81
- name: string;
82
- }) => boolean;
80
+ size: number
81
+ name: string
82
+ }) => boolean
83
83
 
84
- type InlineChunkTest = RegExp | InlineChunkTestFunction;
84
+ type InlineChunkTest = RegExp | InlineChunkTestFunction
85
85
 
86
86
  type InlineChunkConfig =
87
87
  | boolean
88
88
  | InlineChunkTest
89
- | { enable?: boolean | "auto"; test: InlineChunkTest };
89
+ | { enable?: boolean | 'auto', test: InlineChunkTest }
90
90
  ```
91
91
 
92
92
  ```ts
93
- import { defineConfig } from "@lynx-js/rspeedy";
93
+ import { defineConfig } from '@lynx-js/rspeedy'
94
94
 
95
95
  export default defineConfig({
96
96
  output: {
97
97
  inlineScripts: ({ name, size }) => {
98
- return name.includes("foo") && size < 1000;
98
+ return name.includes('foo') && size < 1000
99
99
  },
100
100
  },
101
- });
101
+ })
102
102
  ```
103
103
 
104
104
  - docs: remove chunks: 'all' in comments ([#1168](https://github.com/lynx-family/lynx-stack/pull/1168))
@@ -141,13 +141,13 @@
141
141
  example:
142
142
 
143
143
  ```js
144
- import { defineConfig } from "@lynx-js/rspeedy";
144
+ import { defineConfig } from '@lynx-js/rspeedy'
145
145
 
146
146
  export default defineConfig({
147
147
  output: {
148
148
  inlineScripts: false,
149
149
  },
150
- });
150
+ })
151
151
  ```
152
152
 
153
153
  - Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
@@ -167,12 +167,12 @@
167
167
  example:
168
168
 
169
169
  ```js
170
- import { defineConfig } from "@lynx-js/rspeedy";
170
+ import { defineConfig } from '@lynx-js/rspeedy'
171
171
  export default defineConfig({
172
172
  source: {
173
- preEntry: "./src/polyfill.ts",
173
+ preEntry: './src/polyfill.ts',
174
174
  },
175
- });
175
+ })
176
176
  ```
177
177
 
178
178
  - Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
@@ -183,17 +183,17 @@
183
183
 
184
184
  ```js
185
185
  export const myPlugin = {
186
- name: "my-plugin",
186
+ name: 'my-plugin',
187
187
  setup(api) {
188
- const { callerName } = api.context;
188
+ const { callerName } = api.context
189
189
 
190
- if (callerName === "rslib") {
190
+ if (callerName === 'rslib') {
191
191
  // ...
192
- } else if (callerName === "rspeedy") {
192
+ } else if (callerName === 'rspeedy') {
193
193
  // ...
194
194
  }
195
195
  },
196
- };
196
+ }
197
197
  ```
198
198
 
199
199
  - Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
@@ -216,7 +216,7 @@
216
216
  Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
217
217
 
218
218
  ```js
219
- import { defineConfig } from "@lynx-js/rspeedy";
219
+ import { defineConfig } from '@lynx-js/rspeedy'
220
220
 
221
221
  export default defineConfig({
222
222
  tools: {
@@ -226,7 +226,7 @@
226
226
  },
227
227
  },
228
228
  },
229
- });
229
+ })
230
230
  ```
231
231
 
232
232
  See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
@@ -358,12 +358,12 @@
358
358
  example:
359
359
 
360
360
  ```js
361
- import { defineConfig } from "@lynx-js/rspeedy";
361
+ import { defineConfig } from '@lynx-js/rspeedy'
362
362
  export default defineConfig({
363
363
  server: {
364
- base: "/dist",
364
+ base: '/dist',
365
365
  },
366
- });
366
+ })
367
367
  ```
368
368
 
369
369
  - Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
@@ -416,11 +416,11 @@
416
416
  You can switch to other tools by using:
417
417
 
418
418
  ```js
419
- import { defineConfig } from "@lynx-js/rspeedy";
419
+ import { defineConfig } from '@lynx-js/rspeedy'
420
420
  import {
421
421
  CssMinimizerWebpackPlugin,
422
422
  pluginCssMinimizer,
423
- } from "@rsbuild/plugin-css-minimizer";
423
+ } from '@rsbuild/plugin-css-minimizer'
424
424
 
425
425
  export default defineConfig({
426
426
  plugins: [
@@ -433,7 +433,7 @@
433
433
  },
434
434
  }),
435
435
  ],
436
- });
436
+ })
437
437
  ```
438
438
 
439
439
  See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
@@ -443,8 +443,8 @@
443
443
  You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
444
444
 
445
445
  ```js
446
- import { defineConfig } from "@lynx-js/rspeedy";
447
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
446
+ import { defineConfig } from '@lynx-js/rspeedy'
447
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
448
448
 
449
449
  export default defineConfig({
450
450
  plugins: [
@@ -456,7 +456,7 @@
456
456
  },
457
457
  }),
458
458
  ],
459
- });
459
+ })
460
460
  ```
461
461
 
462
462
  ## 0.7.1
@@ -476,7 +476,7 @@
476
476
  You may turn it off using `output.minify.css: false`:
477
477
 
478
478
  ```js
479
- import { defineConfig } from "@lynx-js/rspeedy";
479
+ import { defineConfig } from '@lynx-js/rspeedy'
480
480
 
481
481
  export default defineConfig({
482
482
  output: {
@@ -484,18 +484,18 @@
484
484
  css: false,
485
485
  },
486
486
  },
487
- });
487
+ })
488
488
  ```
489
489
 
490
490
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
491
491
 
492
492
  ```js
493
- import { defineConfig } from "@lynx-js/rspeedy";
494
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
493
+ import { defineConfig } from '@lynx-js/rspeedy'
494
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
495
495
 
496
496
  export default defineConfig({
497
497
  plugins: [pluginCssMinimizer()],
498
- });
498
+ })
499
499
  ```
500
500
 
501
501
  - 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
@@ -522,22 +522,22 @@
522
522
  - The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
523
523
 
524
524
  ```js
525
- import { defineConfig } from "@lynx-js/rspeedy";
525
+ import { defineConfig } from '@lynx-js/rspeedy'
526
526
 
527
527
  export default defineConfig({
528
528
  dev: {
529
529
  watchFiles: [
530
530
  {
531
- type: "reload-server",
532
- paths: ["public/**/*.txt"],
531
+ type: 'reload-server',
532
+ paths: ['public/**/*.txt'],
533
533
  },
534
534
  {
535
- type: "reload-page",
536
- paths: ["public/**/*.json"],
535
+ type: 'reload-page',
536
+ paths: ['public/**/*.json'],
537
537
  },
538
538
  ],
539
539
  },
540
- });
540
+ })
541
541
  ```
542
542
 
543
543
  - 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.6"
115
+ i8: "0.10.7"
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.6"
43
+ i8: "0.10.7"
44
44
  };
45
45
  const version = package_namespaceObject.i8;
46
46
  const rspackVersion = core_.rspack.rspackVersion;
@@ -19,11 +19,11 @@ export const __webpack_modules__ = {
19
19
  config,
20
20
  debug: _debug_js__WEBPACK_IMPORTED_MODULE_1__.fF,
21
21
  async exit (code) {
22
- const { exit } = await __webpack_require__.e("src_cli_exit_ts").then(__webpack_require__.bind(__webpack_require__, "./src/cli/exit.ts"));
22
+ const { exit } = await Promise.resolve().then(__webpack_require__.bind(__webpack_require__, "./src/cli/exit.ts"));
23
23
  return exit(code);
24
24
  },
25
25
  logger: _rsbuild_core__WEBPACK_IMPORTED_MODULE_0__.logger,
26
- version: _version_js__WEBPACK_IMPORTED_MODULE_2__.i8
26
+ version: _version_js__WEBPACK_IMPORTED_MODULE_2__.version
27
27
  });
28
28
  }
29
29
  };
@@ -7,10 +7,8 @@ export const __webpack_modules__ = {
7
7
  __webpack_require__.d(__webpack_exports__, {
8
8
  pluginRsdoctor: ()=>pluginRsdoctor
9
9
  });
10
- var core_ = __webpack_require__("@rsbuild/core");
11
- function isCI() {
12
- return !!process.env['CI'] && 'false' !== process.env['CI'];
13
- }
10
+ var _rsbuild_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("@rsbuild/core");
11
+ var _utils_is_ci_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./src/utils/is-ci.ts");
14
12
  function pluginRsdoctor(options) {
15
13
  return {
16
14
  name: 'lynx:rsbuild:rsdoctor',
@@ -27,7 +25,7 @@ export const __webpack_modules__ = {
27
25
  if (registered) continue;
28
26
  config.plugins ??= [];
29
27
  const defaultOptions = {
30
- disableClientServer: isCI(),
28
+ disableClientServer: (0, _utils_is_ci_js__WEBPACK_IMPORTED_MODULE_1__.y)(),
31
29
  supports: {
32
30
  banner: true
33
31
  },
@@ -42,12 +40,20 @@ export const __webpack_modules__ = {
42
40
  }
43
41
  }
44
42
  };
45
- config.plugins.push(new RsdoctorRspackPlugin((0, core_.mergeRsbuildConfig)(defaultOptions, options)));
43
+ config.plugins.push(new RsdoctorRspackPlugin((0, _rsbuild_core__WEBPACK_IMPORTED_MODULE_0__.mergeRsbuildConfig)(defaultOptions, options)));
46
44
  }
47
- core_.logger.info("Rsdoctor is enabled.");
45
+ _rsbuild_core__WEBPACK_IMPORTED_MODULE_0__.logger.info("Rsdoctor is enabled.");
48
46
  });
49
47
  }
50
48
  };
51
49
  }
50
+ },
51
+ "./src/utils/is-ci.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
52
+ __webpack_require__.d(__webpack_exports__, {
53
+ y: ()=>isCI
54
+ });
55
+ function isCI() {
56
+ return !!process.env['CI'] && 'false' !== process.env['CI'];
57
+ }
52
58
  }
53
59
  };
@@ -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.6"
13
+ i8: "0.10.7"
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.7-canary-20250815-7e47c4a7",
3
+ "version": "0.10.7",
4
4
  "description": "A webpack/rspack-based frontend toolchain for Lynx",
5
5
  "keywords": [
6
6
  "webpack",