@lynx-js/rspeedy-canary 0.11.1-canary-20250905-877d1535 → 0.11.1

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.11.1-canary-20250905120148-877d15356c059640bfb350eea2675af63376c8e4
3
+ ## 0.11.1
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -11,7 +11,7 @@
11
11
  - Add `output.dataUriLimit.*` for fine-grained control of asset inlining. ([#1648](https://github.com/lynx-family/lynx-stack/pull/1648))
12
12
 
13
13
  ```js
14
- import { defineConfig } from "@lynx-js/rspeedy";
14
+ import { defineConfig } from '@lynx-js/rspeedy'
15
15
 
16
16
  export default defineConfig({
17
17
  output: {
@@ -20,7 +20,7 @@
20
20
  media: 0,
21
21
  },
22
22
  },
23
- });
23
+ })
24
24
  ```
25
25
 
26
26
  ## 0.11.0
@@ -140,28 +140,28 @@
140
140
 
141
141
  ```ts
142
142
  type InlineChunkTestFunction = (params: {
143
- size: number;
144
- name: string;
145
- }) => boolean;
143
+ size: number
144
+ name: string
145
+ }) => boolean
146
146
 
147
- type InlineChunkTest = RegExp | InlineChunkTestFunction;
147
+ type InlineChunkTest = RegExp | InlineChunkTestFunction
148
148
 
149
149
  type InlineChunkConfig =
150
150
  | boolean
151
151
  | InlineChunkTest
152
- | { enable?: boolean | "auto"; test: InlineChunkTest };
152
+ | { enable?: boolean | 'auto', test: InlineChunkTest }
153
153
  ```
154
154
 
155
155
  ```ts
156
- import { defineConfig } from "@lynx-js/rspeedy";
156
+ import { defineConfig } from '@lynx-js/rspeedy'
157
157
 
158
158
  export default defineConfig({
159
159
  output: {
160
160
  inlineScripts: ({ name, size }) => {
161
- return name.includes("foo") && size < 1000;
161
+ return name.includes('foo') && size < 1000
162
162
  },
163
163
  },
164
- });
164
+ })
165
165
  ```
166
166
 
167
167
  - docs: remove chunks: 'all' in comments ([#1168](https://github.com/lynx-family/lynx-stack/pull/1168))
@@ -204,13 +204,13 @@
204
204
  example:
205
205
 
206
206
  ```js
207
- import { defineConfig } from "@lynx-js/rspeedy";
207
+ import { defineConfig } from '@lynx-js/rspeedy'
208
208
 
209
209
  export default defineConfig({
210
210
  output: {
211
211
  inlineScripts: false,
212
212
  },
213
- });
213
+ })
214
214
  ```
215
215
 
216
216
  - Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
@@ -230,12 +230,12 @@
230
230
  example:
231
231
 
232
232
  ```js
233
- import { defineConfig } from "@lynx-js/rspeedy";
233
+ import { defineConfig } from '@lynx-js/rspeedy'
234
234
  export default defineConfig({
235
235
  source: {
236
- preEntry: "./src/polyfill.ts",
236
+ preEntry: './src/polyfill.ts',
237
237
  },
238
- });
238
+ })
239
239
  ```
240
240
 
241
241
  - Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
@@ -246,17 +246,17 @@
246
246
 
247
247
  ```js
248
248
  export const myPlugin = {
249
- name: "my-plugin",
249
+ name: 'my-plugin',
250
250
  setup(api) {
251
- const { callerName } = api.context;
251
+ const { callerName } = api.context
252
252
 
253
- if (callerName === "rslib") {
253
+ if (callerName === 'rslib') {
254
254
  // ...
255
- } else if (callerName === "rspeedy") {
255
+ } else if (callerName === 'rspeedy') {
256
256
  // ...
257
257
  }
258
258
  },
259
- };
259
+ }
260
260
  ```
261
261
 
262
262
  - Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
@@ -279,7 +279,7 @@
279
279
  Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
280
280
 
281
281
  ```js
282
- import { defineConfig } from "@lynx-js/rspeedy";
282
+ import { defineConfig } from '@lynx-js/rspeedy'
283
283
 
284
284
  export default defineConfig({
285
285
  tools: {
@@ -289,7 +289,7 @@
289
289
  },
290
290
  },
291
291
  },
292
- });
292
+ })
293
293
  ```
294
294
 
295
295
  See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
@@ -421,12 +421,12 @@
421
421
  example:
422
422
 
423
423
  ```js
424
- import { defineConfig } from "@lynx-js/rspeedy";
424
+ import { defineConfig } from '@lynx-js/rspeedy'
425
425
  export default defineConfig({
426
426
  server: {
427
- base: "/dist",
427
+ base: '/dist',
428
428
  },
429
- });
429
+ })
430
430
  ```
431
431
 
432
432
  - Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
@@ -479,11 +479,11 @@
479
479
  You can switch to other tools by using:
480
480
 
481
481
  ```js
482
- import { defineConfig } from "@lynx-js/rspeedy";
482
+ import { defineConfig } from '@lynx-js/rspeedy'
483
483
  import {
484
484
  CssMinimizerWebpackPlugin,
485
485
  pluginCssMinimizer,
486
- } from "@rsbuild/plugin-css-minimizer";
486
+ } from '@rsbuild/plugin-css-minimizer'
487
487
 
488
488
  export default defineConfig({
489
489
  plugins: [
@@ -496,7 +496,7 @@
496
496
  },
497
497
  }),
498
498
  ],
499
- });
499
+ })
500
500
  ```
501
501
 
502
502
  See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
@@ -506,8 +506,8 @@
506
506
  You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
507
507
 
508
508
  ```js
509
- import { defineConfig } from "@lynx-js/rspeedy";
510
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
509
+ import { defineConfig } from '@lynx-js/rspeedy'
510
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
511
511
 
512
512
  export default defineConfig({
513
513
  plugins: [
@@ -519,7 +519,7 @@
519
519
  },
520
520
  }),
521
521
  ],
522
- });
522
+ })
523
523
  ```
524
524
 
525
525
  ## 0.7.1
@@ -539,7 +539,7 @@
539
539
  You may turn it off using `output.minify.css: false`:
540
540
 
541
541
  ```js
542
- import { defineConfig } from "@lynx-js/rspeedy";
542
+ import { defineConfig } from '@lynx-js/rspeedy'
543
543
 
544
544
  export default defineConfig({
545
545
  output: {
@@ -547,18 +547,18 @@
547
547
  css: false,
548
548
  },
549
549
  },
550
- });
550
+ })
551
551
  ```
552
552
 
553
553
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
554
554
 
555
555
  ```js
556
- import { defineConfig } from "@lynx-js/rspeedy";
557
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
556
+ import { defineConfig } from '@lynx-js/rspeedy'
557
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
558
558
 
559
559
  export default defineConfig({
560
560
  plugins: [pluginCssMinimizer()],
561
- });
561
+ })
562
562
  ```
563
563
 
564
564
  - 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
@@ -585,22 +585,22 @@
585
585
  - The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
586
586
 
587
587
  ```js
588
- import { defineConfig } from "@lynx-js/rspeedy";
588
+ import { defineConfig } from '@lynx-js/rspeedy'
589
589
 
590
590
  export default defineConfig({
591
591
  dev: {
592
592
  watchFiles: [
593
593
  {
594
- type: "reload-server",
595
- paths: ["public/**/*.txt"],
594
+ type: 'reload-server',
595
+ paths: ['public/**/*.txt'],
596
596
  },
597
597
  {
598
- type: "reload-page",
599
- paths: ["public/**/*.json"],
598
+ type: 'reload-page',
599
+ paths: ['public/**/*.json'],
600
600
  },
601
601
  ],
602
602
  },
603
- });
603
+ })
604
604
  ```
605
605
 
606
606
  - be9b003: Add `source.exclude`.
package/dist/index.js CHANGED
@@ -108,7 +108,7 @@ var __webpack_modules__ = {
108
108
  });
109
109
  var core_ = __webpack_require__("@rsbuild/core");
110
110
  var package_namespaceObject = {
111
- rE: "0.11.0"
111
+ rE: "0.11.1"
112
112
  };
113
113
  const version = package_namespaceObject.rE;
114
114
  const rspackVersion = core_.rspack.rspackVersion;
@@ -41,7 +41,7 @@ export const __webpack_modules__ = {
41
41
  });
42
42
  var core_ = __webpack_require__("@rsbuild/core");
43
43
  var package_namespaceObject = {
44
- rE: "0.11.0"
44
+ rE: "0.11.1"
45
45
  };
46
46
  const version = package_namespaceObject.rE;
47
47
  const rspackVersion = core_.rspack.rspackVersion;
@@ -20,11 +20,11 @@ export const __webpack_modules__ = {
20
20
  config,
21
21
  debug: _debug_js__WEBPACK_IMPORTED_MODULE_1__.Yz,
22
22
  async exit (code) {
23
- const { exit } = await __webpack_require__.e("src_cli_exit_ts").then(__webpack_require__.bind(__webpack_require__, "./src/cli/exit.ts"));
23
+ const { exit } = await Promise.resolve().then(__webpack_require__.bind(__webpack_require__, "./src/cli/exit.ts"));
24
24
  return exit(code);
25
25
  },
26
26
  logger: _rsbuild_core__WEBPACK_IMPORTED_MODULE_0__.logger,
27
- version: _version_js__WEBPACK_IMPORTED_MODULE_2__.rE
27
+ version: _version_js__WEBPACK_IMPORTED_MODULE_2__.version
28
28
  });
29
29
  }
30
30
  };
@@ -8,10 +8,8 @@ export const __webpack_modules__ = {
8
8
  __webpack_require__.d(__webpack_exports__, {
9
9
  pluginRsdoctor: ()=>pluginRsdoctor
10
10
  });
11
- var core_ = __webpack_require__("@rsbuild/core");
12
- function isCI() {
13
- return !!process.env['CI'] && 'false' !== process.env['CI'];
14
- }
11
+ var _rsbuild_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("@rsbuild/core");
12
+ var _utils_is_ci_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./src/utils/is-ci.ts");
15
13
  function pluginRsdoctor(options) {
16
14
  return {
17
15
  name: 'lynx:rsbuild:rsdoctor',
@@ -28,7 +26,7 @@ export const __webpack_modules__ = {
28
26
  if (registered) continue;
29
27
  config.plugins ??= [];
30
28
  const defaultOptions = {
31
- disableClientServer: isCI(),
29
+ disableClientServer: (0, _utils_is_ci_js__WEBPACK_IMPORTED_MODULE_1__.J)(),
32
30
  supports: {
33
31
  banner: true
34
32
  },
@@ -43,12 +41,20 @@ export const __webpack_modules__ = {
43
41
  }
44
42
  }
45
43
  };
46
- config.plugins.push(new RsdoctorRspackPlugin((0, core_.mergeRsbuildConfig)(defaultOptions, options)));
44
+ config.plugins.push(new RsdoctorRspackPlugin((0, _rsbuild_core__WEBPACK_IMPORTED_MODULE_0__.mergeRsbuildConfig)(defaultOptions, options)));
47
45
  }
48
- core_.logger.info("Rsdoctor is enabled.");
46
+ _rsbuild_core__WEBPACK_IMPORTED_MODULE_0__.logger.info("Rsdoctor is enabled.");
49
47
  });
50
48
  }
51
49
  };
52
50
  }
51
+ },
52
+ "./src/utils/is-ci.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
53
+ __webpack_require__.d(__webpack_exports__, {
54
+ J: ()=>isCI
55
+ });
56
+ function isCI() {
57
+ return !!process.env['CI'] && 'false' !== process.env['CI'];
58
+ }
53
59
  }
54
60
  };
@@ -11,7 +11,7 @@ export const __webpack_modules__ = {
11
11
  });
12
12
  var core_ = __webpack_require__("@rsbuild/core");
13
13
  var package_namespaceObject = {
14
- rE: "0.11.0"
14
+ rE: "0.11.1"
15
15
  };
16
16
  const version = package_namespaceObject.rE;
17
17
  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.11.1-canary-20250905-877d1535",
3
+ "version": "0.11.1",
4
4
  "description": "A webpack/rspack-based frontend toolchain for Lynx",
5
5
  "keywords": [
6
6
  "webpack",