@lynx-js/rspeedy-canary 0.10.4-canary-20250801-d2961703 → 0.10.4

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.4-canary-20250801134644-d29617030d83dd5d1ec2aaa8d79856df397d60b1
3
+ ## 0.10.4
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -49,28 +49,28 @@
49
49
 
50
50
  ```ts
51
51
  type InlineChunkTestFunction = (params: {
52
- size: number;
53
- name: string;
54
- }) => boolean;
52
+ size: number
53
+ name: string
54
+ }) => boolean
55
55
 
56
- type InlineChunkTest = RegExp | InlineChunkTestFunction;
56
+ type InlineChunkTest = RegExp | InlineChunkTestFunction
57
57
 
58
58
  type InlineChunkConfig =
59
59
  | boolean
60
60
  | InlineChunkTest
61
- | { enable?: boolean | "auto"; test: InlineChunkTest };
61
+ | { enable?: boolean | 'auto', test: InlineChunkTest }
62
62
  ```
63
63
 
64
64
  ```ts
65
- import { defineConfig } from "@lynx-js/rspeedy";
65
+ import { defineConfig } from '@lynx-js/rspeedy'
66
66
 
67
67
  export default defineConfig({
68
68
  output: {
69
69
  inlineScripts: ({ name, size }) => {
70
- return name.includes("foo") && size < 1000;
70
+ return name.includes('foo') && size < 1000
71
71
  },
72
72
  },
73
- });
73
+ })
74
74
  ```
75
75
 
76
76
  - docs: remove chunks: 'all' in comments ([#1168](https://github.com/lynx-family/lynx-stack/pull/1168))
@@ -113,13 +113,13 @@
113
113
  example:
114
114
 
115
115
  ```js
116
- import { defineConfig } from "@lynx-js/rspeedy";
116
+ import { defineConfig } from '@lynx-js/rspeedy'
117
117
 
118
118
  export default defineConfig({
119
119
  output: {
120
120
  inlineScripts: false,
121
121
  },
122
- });
122
+ })
123
123
  ```
124
124
 
125
125
  - Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
@@ -139,12 +139,12 @@
139
139
  example:
140
140
 
141
141
  ```js
142
- import { defineConfig } from "@lynx-js/rspeedy";
142
+ import { defineConfig } from '@lynx-js/rspeedy'
143
143
  export default defineConfig({
144
144
  source: {
145
- preEntry: "./src/polyfill.ts",
145
+ preEntry: './src/polyfill.ts',
146
146
  },
147
- });
147
+ })
148
148
  ```
149
149
 
150
150
  - Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
@@ -155,17 +155,17 @@
155
155
 
156
156
  ```js
157
157
  export const myPlugin = {
158
- name: "my-plugin",
158
+ name: 'my-plugin',
159
159
  setup(api) {
160
- const { callerName } = api.context;
160
+ const { callerName } = api.context
161
161
 
162
- if (callerName === "rslib") {
162
+ if (callerName === 'rslib') {
163
163
  // ...
164
- } else if (callerName === "rspeedy") {
164
+ } else if (callerName === 'rspeedy') {
165
165
  // ...
166
166
  }
167
167
  },
168
- };
168
+ }
169
169
  ```
170
170
 
171
171
  - Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
@@ -188,7 +188,7 @@
188
188
  Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
189
189
 
190
190
  ```js
191
- import { defineConfig } from "@lynx-js/rspeedy";
191
+ import { defineConfig } from '@lynx-js/rspeedy'
192
192
 
193
193
  export default defineConfig({
194
194
  tools: {
@@ -198,7 +198,7 @@
198
198
  },
199
199
  },
200
200
  },
201
- });
201
+ })
202
202
  ```
203
203
 
204
204
  See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
@@ -330,12 +330,12 @@
330
330
  example:
331
331
 
332
332
  ```js
333
- import { defineConfig } from "@lynx-js/rspeedy";
333
+ import { defineConfig } from '@lynx-js/rspeedy'
334
334
  export default defineConfig({
335
335
  server: {
336
- base: "/dist",
336
+ base: '/dist',
337
337
  },
338
- });
338
+ })
339
339
  ```
340
340
 
341
341
  - Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
@@ -388,11 +388,11 @@
388
388
  You can switch to other tools by using:
389
389
 
390
390
  ```js
391
- import { defineConfig } from "@lynx-js/rspeedy";
391
+ import { defineConfig } from '@lynx-js/rspeedy'
392
392
  import {
393
393
  CssMinimizerWebpackPlugin,
394
394
  pluginCssMinimizer,
395
- } from "@rsbuild/plugin-css-minimizer";
395
+ } from '@rsbuild/plugin-css-minimizer'
396
396
 
397
397
  export default defineConfig({
398
398
  plugins: [
@@ -405,7 +405,7 @@
405
405
  },
406
406
  }),
407
407
  ],
408
- });
408
+ })
409
409
  ```
410
410
 
411
411
  See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
@@ -415,8 +415,8 @@
415
415
  You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
416
416
 
417
417
  ```js
418
- import { defineConfig } from "@lynx-js/rspeedy";
419
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
418
+ import { defineConfig } from '@lynx-js/rspeedy'
419
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
420
420
 
421
421
  export default defineConfig({
422
422
  plugins: [
@@ -428,7 +428,7 @@
428
428
  },
429
429
  }),
430
430
  ],
431
- });
431
+ })
432
432
  ```
433
433
 
434
434
  ## 0.7.1
@@ -448,7 +448,7 @@
448
448
  You may turn it off using `output.minify.css: false`:
449
449
 
450
450
  ```js
451
- import { defineConfig } from "@lynx-js/rspeedy";
451
+ import { defineConfig } from '@lynx-js/rspeedy'
452
452
 
453
453
  export default defineConfig({
454
454
  output: {
@@ -456,18 +456,18 @@
456
456
  css: false,
457
457
  },
458
458
  },
459
- });
459
+ })
460
460
  ```
461
461
 
462
462
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
463
463
 
464
464
  ```js
465
- import { defineConfig } from "@lynx-js/rspeedy";
466
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
465
+ import { defineConfig } from '@lynx-js/rspeedy'
466
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
467
467
 
468
468
  export default defineConfig({
469
469
  plugins: [pluginCssMinimizer()],
470
- });
470
+ })
471
471
  ```
472
472
 
473
473
  - 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
@@ -494,22 +494,22 @@
494
494
  - The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
495
495
 
496
496
  ```js
497
- import { defineConfig } from "@lynx-js/rspeedy";
497
+ import { defineConfig } from '@lynx-js/rspeedy'
498
498
 
499
499
  export default defineConfig({
500
500
  dev: {
501
501
  watchFiles: [
502
502
  {
503
- type: "reload-server",
504
- paths: ["public/**/*.txt"],
503
+ type: 'reload-server',
504
+ paths: ['public/**/*.txt'],
505
505
  },
506
506
  {
507
- type: "reload-page",
508
- paths: ["public/**/*.json"],
507
+ type: 'reload-page',
508
+ paths: ['public/**/*.json'],
509
509
  },
510
510
  ],
511
511
  },
512
- });
512
+ })
513
513
  ```
514
514
 
515
515
  - 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.3"
115
+ i8: "0.10.4"
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.3"
43
+ i8: "0.10.4"
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.3"
13
+ i8: "0.10.4"
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.4-canary-20250801-d2961703",
3
+ "version": "0.10.4",
4
4
  "description": "A webpack/rspack-based frontend toolchain for Lynx",
5
5
  "keywords": [
6
6
  "webpack",