@lynx-js/rspeedy-canary 0.11.2-canary-20250915-88622967 → 0.11.2

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.2-canary-20250915100348-88622967b345f73ee8ed15aa3a89c39e1ae47f5d
3
+ ## 0.11.2
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -9,11 +9,11 @@
9
9
  - Support `command` and `env` parameters in the function exported by `lynx.config.js`. ([#1669](https://github.com/lynx-family/lynx-stack/pull/1669))
10
10
 
11
11
  ```js
12
- import { defineConfig } from "@lynx-js/rspeedy";
12
+ import { defineConfig } from '@lynx-js/rspeedy'
13
13
 
14
14
  export default defineConfig(({ command, env }) => {
15
- const isBuild = command === "build";
16
- const isTest = env === "test";
15
+ const isBuild = command === 'build'
16
+ const isTest = env === 'test'
17
17
 
18
18
  return {
19
19
  output: {
@@ -22,8 +22,8 @@
22
22
  performance: {
23
23
  buildCache: isBuild,
24
24
  },
25
- };
26
- });
25
+ }
26
+ })
27
27
  ```
28
28
 
29
29
  - Support `resolve.dedupe`. ([#1671](https://github.com/lynx-family/lynx-stack/pull/1671))
@@ -31,36 +31,36 @@
31
31
  This is useful when having multiple duplicated packages in the bundle:
32
32
 
33
33
  ```js
34
- import { defineConfig } from "@lynx-js/rspeedy";
34
+ import { defineConfig } from '@lynx-js/rspeedy'
35
35
 
36
36
  export default defineConfig({
37
37
  resolve: {
38
- dedupe: ["tslib"],
38
+ dedupe: ['tslib'],
39
39
  },
40
- });
40
+ })
41
41
  ```
42
42
 
43
43
  - Support `resolve.aliasStrategy` for controlling priority between `tsconfig.json` paths and `resolve.alias` ([#1722](https://github.com/lynx-family/lynx-stack/pull/1722))
44
44
 
45
45
  ```js
46
- import { defineConfig } from "@lynx-js/rspeedy";
46
+ import { defineConfig } from '@lynx-js/rspeedy'
47
47
 
48
48
  export default defineConfig({
49
49
  resolve: {
50
50
  alias: {
51
- "@": "./src",
51
+ '@': './src',
52
52
  },
53
53
  // 'prefer-tsconfig' (default): tsconfig.json paths take priority
54
54
  // 'prefer-alias': resolve.alias takes priority
55
- aliasStrategy: "prefer-alias",
55
+ aliasStrategy: 'prefer-alias',
56
56
  },
57
- });
57
+ })
58
58
  ```
59
59
 
60
60
  - Bump Rsbuild v1.5.4 with Rspack v1.5.2. ([#1644](https://github.com/lynx-family/lynx-stack/pull/1644))
61
61
 
62
62
  - Updated dependencies [[`d7c5da3`](https://github.com/lynx-family/lynx-stack/commit/d7c5da329caddfb12ed77159fb8b1b8f38717cff)]:
63
- - @lynx-js/chunk-loading-webpack-plugin@0.3.3-canary-20250915100348-88622967b345f73ee8ed15aa3a89c39e1ae47f5d
63
+ - @lynx-js/chunk-loading-webpack-plugin@0.3.3
64
64
  - @lynx-js/cache-events-webpack-plugin@0.0.2
65
65
 
66
66
  ## 0.11.1
@@ -74,7 +74,7 @@
74
74
  - Add `output.dataUriLimit.*` for fine-grained control of asset inlining. ([#1648](https://github.com/lynx-family/lynx-stack/pull/1648))
75
75
 
76
76
  ```js
77
- import { defineConfig } from "@lynx-js/rspeedy";
77
+ import { defineConfig } from '@lynx-js/rspeedy'
78
78
 
79
79
  export default defineConfig({
80
80
  output: {
@@ -83,7 +83,7 @@
83
83
  media: 0,
84
84
  },
85
85
  },
86
- });
86
+ })
87
87
  ```
88
88
 
89
89
  ## 0.11.0
@@ -203,28 +203,28 @@
203
203
 
204
204
  ```ts
205
205
  type InlineChunkTestFunction = (params: {
206
- size: number;
207
- name: string;
208
- }) => boolean;
206
+ size: number
207
+ name: string
208
+ }) => boolean
209
209
 
210
- type InlineChunkTest = RegExp | InlineChunkTestFunction;
210
+ type InlineChunkTest = RegExp | InlineChunkTestFunction
211
211
 
212
212
  type InlineChunkConfig =
213
213
  | boolean
214
214
  | InlineChunkTest
215
- | { enable?: boolean | "auto"; test: InlineChunkTest };
215
+ | { enable?: boolean | 'auto', test: InlineChunkTest }
216
216
  ```
217
217
 
218
218
  ```ts
219
- import { defineConfig } from "@lynx-js/rspeedy";
219
+ import { defineConfig } from '@lynx-js/rspeedy'
220
220
 
221
221
  export default defineConfig({
222
222
  output: {
223
223
  inlineScripts: ({ name, size }) => {
224
- return name.includes("foo") && size < 1000;
224
+ return name.includes('foo') && size < 1000
225
225
  },
226
226
  },
227
- });
227
+ })
228
228
  ```
229
229
 
230
230
  - docs: remove chunks: 'all' in comments ([#1168](https://github.com/lynx-family/lynx-stack/pull/1168))
@@ -267,13 +267,13 @@
267
267
  example:
268
268
 
269
269
  ```js
270
- import { defineConfig } from "@lynx-js/rspeedy";
270
+ import { defineConfig } from '@lynx-js/rspeedy'
271
271
 
272
272
  export default defineConfig({
273
273
  output: {
274
274
  inlineScripts: false,
275
275
  },
276
- });
276
+ })
277
277
  ```
278
278
 
279
279
  - Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
@@ -293,12 +293,12 @@
293
293
  example:
294
294
 
295
295
  ```js
296
- import { defineConfig } from "@lynx-js/rspeedy";
296
+ import { defineConfig } from '@lynx-js/rspeedy'
297
297
  export default defineConfig({
298
298
  source: {
299
- preEntry: "./src/polyfill.ts",
299
+ preEntry: './src/polyfill.ts',
300
300
  },
301
- });
301
+ })
302
302
  ```
303
303
 
304
304
  - Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
@@ -309,17 +309,17 @@
309
309
 
310
310
  ```js
311
311
  export const myPlugin = {
312
- name: "my-plugin",
312
+ name: 'my-plugin',
313
313
  setup(api) {
314
- const { callerName } = api.context;
314
+ const { callerName } = api.context
315
315
 
316
- if (callerName === "rslib") {
316
+ if (callerName === 'rslib') {
317
317
  // ...
318
- } else if (callerName === "rspeedy") {
318
+ } else if (callerName === 'rspeedy') {
319
319
  // ...
320
320
  }
321
321
  },
322
- };
322
+ }
323
323
  ```
324
324
 
325
325
  - Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
@@ -342,7 +342,7 @@
342
342
  Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
343
343
 
344
344
  ```js
345
- import { defineConfig } from "@lynx-js/rspeedy";
345
+ import { defineConfig } from '@lynx-js/rspeedy'
346
346
 
347
347
  export default defineConfig({
348
348
  tools: {
@@ -352,7 +352,7 @@
352
352
  },
353
353
  },
354
354
  },
355
- });
355
+ })
356
356
  ```
357
357
 
358
358
  See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
@@ -484,12 +484,12 @@
484
484
  example:
485
485
 
486
486
  ```js
487
- import { defineConfig } from "@lynx-js/rspeedy";
487
+ import { defineConfig } from '@lynx-js/rspeedy'
488
488
  export default defineConfig({
489
489
  server: {
490
- base: "/dist",
490
+ base: '/dist',
491
491
  },
492
- });
492
+ })
493
493
  ```
494
494
 
495
495
  - Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
@@ -542,11 +542,11 @@
542
542
  You can switch to other tools by using:
543
543
 
544
544
  ```js
545
- import { defineConfig } from "@lynx-js/rspeedy";
545
+ import { defineConfig } from '@lynx-js/rspeedy'
546
546
  import {
547
547
  CssMinimizerWebpackPlugin,
548
548
  pluginCssMinimizer,
549
- } from "@rsbuild/plugin-css-minimizer";
549
+ } from '@rsbuild/plugin-css-minimizer'
550
550
 
551
551
  export default defineConfig({
552
552
  plugins: [
@@ -559,7 +559,7 @@
559
559
  },
560
560
  }),
561
561
  ],
562
- });
562
+ })
563
563
  ```
564
564
 
565
565
  See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
@@ -569,8 +569,8 @@
569
569
  You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
570
570
 
571
571
  ```js
572
- import { defineConfig } from "@lynx-js/rspeedy";
573
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
572
+ import { defineConfig } from '@lynx-js/rspeedy'
573
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
574
574
 
575
575
  export default defineConfig({
576
576
  plugins: [
@@ -582,7 +582,7 @@
582
582
  },
583
583
  }),
584
584
  ],
585
- });
585
+ })
586
586
  ```
587
587
 
588
588
  ## 0.7.1
@@ -602,7 +602,7 @@
602
602
  You may turn it off using `output.minify.css: false`:
603
603
 
604
604
  ```js
605
- import { defineConfig } from "@lynx-js/rspeedy";
605
+ import { defineConfig } from '@lynx-js/rspeedy'
606
606
 
607
607
  export default defineConfig({
608
608
  output: {
@@ -610,18 +610,18 @@
610
610
  css: false,
611
611
  },
612
612
  },
613
- });
613
+ })
614
614
  ```
615
615
 
616
616
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
617
617
 
618
618
  ```js
619
- import { defineConfig } from "@lynx-js/rspeedy";
620
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
619
+ import { defineConfig } from '@lynx-js/rspeedy'
620
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
621
621
 
622
622
  export default defineConfig({
623
623
  plugins: [pluginCssMinimizer()],
624
- });
624
+ })
625
625
  ```
626
626
 
627
627
  - 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
@@ -648,22 +648,22 @@
648
648
  - The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
649
649
 
650
650
  ```js
651
- import { defineConfig } from "@lynx-js/rspeedy";
651
+ import { defineConfig } from '@lynx-js/rspeedy'
652
652
 
653
653
  export default defineConfig({
654
654
  dev: {
655
655
  watchFiles: [
656
656
  {
657
- type: "reload-server",
658
- paths: ["public/**/*.txt"],
657
+ type: 'reload-server',
658
+ paths: ['public/**/*.txt'],
659
659
  },
660
660
  {
661
- type: "reload-page",
662
- paths: ["public/**/*.json"],
661
+ type: 'reload-page',
662
+ paths: ['public/**/*.json'],
663
663
  },
664
664
  ],
665
665
  },
666
- });
666
+ })
667
667
  ```
668
668
 
669
669
  - 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.1"
111
+ rE: "0.11.2"
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.1"
44
+ rE: "0.11.2"
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.1"
14
+ rE: "0.11.2"
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.2-canary-20250915-88622967",
3
+ "version": "0.11.2",
4
4
  "description": "A webpack/rspack-based frontend toolchain for Lynx",
5
5
  "keywords": [
6
6
  "webpack",
@@ -49,7 +49,7 @@
49
49
  ],
50
50
  "dependencies": {
51
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.3-canary-20250915-88622967",
52
+ "@lynx-js/chunk-loading-webpack-plugin": "npm:@lynx-js/chunk-loading-webpack-plugin-canary@0.3.3",
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.4",