@lynx-js/rspeedy-canary 0.11.0-canary-20250829-00f64960 → 0.11.0

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.0-canary-20250829064647-00f64960a6b00691b2a802cf7590905e5619ff8b
3
+ ## 0.11.0
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -20,9 +20,9 @@
20
20
 
21
21
  - Support `rspeedy build --watch` ([#1579](https://github.com/lynx-family/lynx-stack/pull/1579))
22
22
 
23
- - Updated dependencies [[`1952fc1`](https://github.com/lynx-family/lynx-stack/commit/1952fc1557e5abbdbdf4a2073fd3b6f64dd32c3c)]:
24
- - @lynx-js/chunk-loading-webpack-plugin@0.3.2-canary-20250829064647-00f64960a6b00691b2a802cf7590905e5619ff8b
25
- - @lynx-js/cache-events-webpack-plugin@0.0.1
23
+ - Updated dependencies [[`d7d0b9b`](https://github.com/lynx-family/lynx-stack/commit/d7d0b9b94e219cd057c935d723775c82b10559a6), [`1952fc1`](https://github.com/lynx-family/lynx-stack/commit/1952fc1557e5abbdbdf4a2073fd3b6f64dd32c3c)]:
24
+ - @lynx-js/cache-events-webpack-plugin@0.0.2
25
+ - @lynx-js/chunk-loading-webpack-plugin@0.3.2
26
26
 
27
27
  ## 0.10.8
28
28
 
@@ -117,28 +117,28 @@
117
117
 
118
118
  ```ts
119
119
  type InlineChunkTestFunction = (params: {
120
- size: number;
121
- name: string;
122
- }) => boolean;
120
+ size: number
121
+ name: string
122
+ }) => boolean
123
123
 
124
- type InlineChunkTest = RegExp | InlineChunkTestFunction;
124
+ type InlineChunkTest = RegExp | InlineChunkTestFunction
125
125
 
126
126
  type InlineChunkConfig =
127
127
  | boolean
128
128
  | InlineChunkTest
129
- | { enable?: boolean | "auto"; test: InlineChunkTest };
129
+ | { enable?: boolean | 'auto', test: InlineChunkTest }
130
130
  ```
131
131
 
132
132
  ```ts
133
- import { defineConfig } from "@lynx-js/rspeedy";
133
+ import { defineConfig } from '@lynx-js/rspeedy'
134
134
 
135
135
  export default defineConfig({
136
136
  output: {
137
137
  inlineScripts: ({ name, size }) => {
138
- return name.includes("foo") && size < 1000;
138
+ return name.includes('foo') && size < 1000
139
139
  },
140
140
  },
141
- });
141
+ })
142
142
  ```
143
143
 
144
144
  - docs: remove chunks: 'all' in comments ([#1168](https://github.com/lynx-family/lynx-stack/pull/1168))
@@ -181,13 +181,13 @@
181
181
  example:
182
182
 
183
183
  ```js
184
- import { defineConfig } from "@lynx-js/rspeedy";
184
+ import { defineConfig } from '@lynx-js/rspeedy'
185
185
 
186
186
  export default defineConfig({
187
187
  output: {
188
188
  inlineScripts: false,
189
189
  },
190
- });
190
+ })
191
191
  ```
192
192
 
193
193
  - Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
@@ -207,12 +207,12 @@
207
207
  example:
208
208
 
209
209
  ```js
210
- import { defineConfig } from "@lynx-js/rspeedy";
210
+ import { defineConfig } from '@lynx-js/rspeedy'
211
211
  export default defineConfig({
212
212
  source: {
213
- preEntry: "./src/polyfill.ts",
213
+ preEntry: './src/polyfill.ts',
214
214
  },
215
- });
215
+ })
216
216
  ```
217
217
 
218
218
  - Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
@@ -223,17 +223,17 @@
223
223
 
224
224
  ```js
225
225
  export const myPlugin = {
226
- name: "my-plugin",
226
+ name: 'my-plugin',
227
227
  setup(api) {
228
- const { callerName } = api.context;
228
+ const { callerName } = api.context
229
229
 
230
- if (callerName === "rslib") {
230
+ if (callerName === 'rslib') {
231
231
  // ...
232
- } else if (callerName === "rspeedy") {
232
+ } else if (callerName === 'rspeedy') {
233
233
  // ...
234
234
  }
235
235
  },
236
- };
236
+ }
237
237
  ```
238
238
 
239
239
  - Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
@@ -256,7 +256,7 @@
256
256
  Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
257
257
 
258
258
  ```js
259
- import { defineConfig } from "@lynx-js/rspeedy";
259
+ import { defineConfig } from '@lynx-js/rspeedy'
260
260
 
261
261
  export default defineConfig({
262
262
  tools: {
@@ -266,7 +266,7 @@
266
266
  },
267
267
  },
268
268
  },
269
- });
269
+ })
270
270
  ```
271
271
 
272
272
  See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
@@ -398,12 +398,12 @@
398
398
  example:
399
399
 
400
400
  ```js
401
- import { defineConfig } from "@lynx-js/rspeedy";
401
+ import { defineConfig } from '@lynx-js/rspeedy'
402
402
  export default defineConfig({
403
403
  server: {
404
- base: "/dist",
404
+ base: '/dist',
405
405
  },
406
- });
406
+ })
407
407
  ```
408
408
 
409
409
  - Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
@@ -456,11 +456,11 @@
456
456
  You can switch to other tools by using:
457
457
 
458
458
  ```js
459
- import { defineConfig } from "@lynx-js/rspeedy";
459
+ import { defineConfig } from '@lynx-js/rspeedy'
460
460
  import {
461
461
  CssMinimizerWebpackPlugin,
462
462
  pluginCssMinimizer,
463
- } from "@rsbuild/plugin-css-minimizer";
463
+ } from '@rsbuild/plugin-css-minimizer'
464
464
 
465
465
  export default defineConfig({
466
466
  plugins: [
@@ -473,7 +473,7 @@
473
473
  },
474
474
  }),
475
475
  ],
476
- });
476
+ })
477
477
  ```
478
478
 
479
479
  See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
@@ -483,8 +483,8 @@
483
483
  You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
484
484
 
485
485
  ```js
486
- import { defineConfig } from "@lynx-js/rspeedy";
487
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
486
+ import { defineConfig } from '@lynx-js/rspeedy'
487
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
488
488
 
489
489
  export default defineConfig({
490
490
  plugins: [
@@ -496,7 +496,7 @@
496
496
  },
497
497
  }),
498
498
  ],
499
- });
499
+ })
500
500
  ```
501
501
 
502
502
  ## 0.7.1
@@ -516,7 +516,7 @@
516
516
  You may turn it off using `output.minify.css: false`:
517
517
 
518
518
  ```js
519
- import { defineConfig } from "@lynx-js/rspeedy";
519
+ import { defineConfig } from '@lynx-js/rspeedy'
520
520
 
521
521
  export default defineConfig({
522
522
  output: {
@@ -524,18 +524,18 @@
524
524
  css: false,
525
525
  },
526
526
  },
527
- });
527
+ })
528
528
  ```
529
529
 
530
530
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
531
531
 
532
532
  ```js
533
- import { defineConfig } from "@lynx-js/rspeedy";
534
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
533
+ import { defineConfig } from '@lynx-js/rspeedy'
534
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
535
535
 
536
536
  export default defineConfig({
537
537
  plugins: [pluginCssMinimizer()],
538
- });
538
+ })
539
539
  ```
540
540
 
541
541
  - 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
@@ -562,22 +562,22 @@
562
562
  - The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
563
563
 
564
564
  ```js
565
- import { defineConfig } from "@lynx-js/rspeedy";
565
+ import { defineConfig } from '@lynx-js/rspeedy'
566
566
 
567
567
  export default defineConfig({
568
568
  dev: {
569
569
  watchFiles: [
570
570
  {
571
- type: "reload-server",
572
- paths: ["public/**/*.txt"],
571
+ type: 'reload-server',
572
+ paths: ['public/**/*.txt'],
573
573
  },
574
574
  {
575
- type: "reload-page",
576
- paths: ["public/**/*.json"],
575
+ type: 'reload-page',
576
+ paths: ['public/**/*.json'],
577
577
  },
578
578
  ],
579
579
  },
580
- });
580
+ })
581
581
  ```
582
582
 
583
583
  - 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.10.8"
111
+ rE: "0.11.0"
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.10.8"
44
+ rE: "0.11.0"
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 Promise.resolve().then(__webpack_require__.bind(__webpack_require__, "./src/cli/exit.ts"));
23
+ const { exit } = await __webpack_require__.e("src_cli_exit_ts").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__.version
27
+ version: _version_js__WEBPACK_IMPORTED_MODULE_2__.rE
28
28
  });
29
29
  }
30
30
  };
@@ -8,8 +8,10 @@ export const __webpack_modules__ = {
8
8
  __webpack_require__.d(__webpack_exports__, {
9
9
  pluginRsdoctor: ()=>pluginRsdoctor
10
10
  });
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");
11
+ var core_ = __webpack_require__("@rsbuild/core");
12
+ function isCI() {
13
+ return !!process.env['CI'] && 'false' !== process.env['CI'];
14
+ }
13
15
  function pluginRsdoctor(options) {
14
16
  return {
15
17
  name: 'lynx:rsbuild:rsdoctor',
@@ -26,7 +28,7 @@ export const __webpack_modules__ = {
26
28
  if (registered) continue;
27
29
  config.plugins ??= [];
28
30
  const defaultOptions = {
29
- disableClientServer: (0, _utils_is_ci_js__WEBPACK_IMPORTED_MODULE_1__.J)(),
31
+ disableClientServer: isCI(),
30
32
  supports: {
31
33
  banner: true
32
34
  },
@@ -41,20 +43,12 @@ export const __webpack_modules__ = {
41
43
  }
42
44
  }
43
45
  };
44
- config.plugins.push(new RsdoctorRspackPlugin((0, _rsbuild_core__WEBPACK_IMPORTED_MODULE_0__.mergeRsbuildConfig)(defaultOptions, options)));
46
+ config.plugins.push(new RsdoctorRspackPlugin((0, core_.mergeRsbuildConfig)(defaultOptions, options)));
45
47
  }
46
- _rsbuild_core__WEBPACK_IMPORTED_MODULE_0__.logger.info("Rsdoctor is enabled.");
48
+ core_.logger.info("Rsdoctor is enabled.");
47
49
  });
48
50
  }
49
51
  };
50
52
  }
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
- }
59
53
  }
60
54
  };
@@ -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.10.8"
14
+ rE: "0.11.0"
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.0-canary-20250829-00f64960",
3
+ "version": "0.11.0",
4
4
  "description": "A webpack/rspack-based frontend toolchain for Lynx",
5
5
  "keywords": [
6
6
  "webpack",
@@ -48,8 +48,8 @@
48
48
  "README.md"
49
49
  ],
50
50
  "dependencies": {
51
- "@lynx-js/cache-events-webpack-plugin": "npm:@lynx-js/cache-events-webpack-plugin-canary@0.0.1",
52
- "@lynx-js/chunk-loading-webpack-plugin": "npm:@lynx-js/chunk-loading-webpack-plugin-canary@0.3.2-canary-20250829-00f64960",
51
+ "@lynx-js/cache-events-webpack-plugin": "npm:@lynx-js/cache-events-webpack-plugin-canary@0.0.2",
52
+ "@lynx-js/chunk-loading-webpack-plugin": "npm:@lynx-js/chunk-loading-webpack-plugin-canary@0.3.2",
53
53
  "@lynx-js/webpack-dev-transport": "npm:@lynx-js/webpack-dev-transport-canary@0.2.0",
54
54
  "@lynx-js/websocket": "npm:@lynx-js/websocket-canary@0.0.4",
55
55
  "@rsbuild/core": "1.5.0",