@lynx-js/rspeedy-canary 0.11.4-canary-20250925-6180e11d → 0.11.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.11.4-canary-20250925132904-6180e11dc18587b00e2a8c02a52a7de190b953ed
3
+ ## 0.11.4
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -31,11 +31,11 @@
31
31
  - Support `command` and `env` parameters in the function exported by `lynx.config.js`. ([#1669](https://github.com/lynx-family/lynx-stack/pull/1669))
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(({ command, env }) => {
37
- const isBuild = command === "build";
38
- const isTest = env === "test";
37
+ const isBuild = command === 'build'
38
+ const isTest = env === 'test'
39
39
 
40
40
  return {
41
41
  output: {
@@ -44,8 +44,8 @@
44
44
  performance: {
45
45
  buildCache: isBuild,
46
46
  },
47
- };
48
- });
47
+ }
48
+ })
49
49
  ```
50
50
 
51
51
  - Support `resolve.dedupe`. ([#1671](https://github.com/lynx-family/lynx-stack/pull/1671))
@@ -53,30 +53,30 @@
53
53
  This is useful when having multiple duplicated packages in the bundle:
54
54
 
55
55
  ```js
56
- import { defineConfig } from "@lynx-js/rspeedy";
56
+ import { defineConfig } from '@lynx-js/rspeedy'
57
57
 
58
58
  export default defineConfig({
59
59
  resolve: {
60
- dedupe: ["tslib"],
60
+ dedupe: ['tslib'],
61
61
  },
62
- });
62
+ })
63
63
  ```
64
64
 
65
65
  - Support `resolve.aliasStrategy` for controlling priority between `tsconfig.json` paths and `resolve.alias` ([#1722](https://github.com/lynx-family/lynx-stack/pull/1722))
66
66
 
67
67
  ```js
68
- import { defineConfig } from "@lynx-js/rspeedy";
68
+ import { defineConfig } from '@lynx-js/rspeedy'
69
69
 
70
70
  export default defineConfig({
71
71
  resolve: {
72
72
  alias: {
73
- "@": "./src",
73
+ '@': './src',
74
74
  },
75
75
  // 'prefer-tsconfig' (default): tsconfig.json paths take priority
76
76
  // 'prefer-alias': resolve.alias takes priority
77
- aliasStrategy: "prefer-alias",
77
+ aliasStrategy: 'prefer-alias',
78
78
  },
79
- });
79
+ })
80
80
  ```
81
81
 
82
82
  - Bump Rsbuild v1.5.4 with Rspack v1.5.2. ([#1644](https://github.com/lynx-family/lynx-stack/pull/1644))
@@ -96,7 +96,7 @@
96
96
  - Add `output.dataUriLimit.*` for fine-grained control of asset inlining. ([#1648](https://github.com/lynx-family/lynx-stack/pull/1648))
97
97
 
98
98
  ```js
99
- import { defineConfig } from "@lynx-js/rspeedy";
99
+ import { defineConfig } from '@lynx-js/rspeedy'
100
100
 
101
101
  export default defineConfig({
102
102
  output: {
@@ -105,7 +105,7 @@
105
105
  media: 0,
106
106
  },
107
107
  },
108
- });
108
+ })
109
109
  ```
110
110
 
111
111
  ## 0.11.0
@@ -225,28 +225,28 @@
225
225
 
226
226
  ```ts
227
227
  type InlineChunkTestFunction = (params: {
228
- size: number;
229
- name: string;
230
- }) => boolean;
228
+ size: number
229
+ name: string
230
+ }) => boolean
231
231
 
232
- type InlineChunkTest = RegExp | InlineChunkTestFunction;
232
+ type InlineChunkTest = RegExp | InlineChunkTestFunction
233
233
 
234
234
  type InlineChunkConfig =
235
235
  | boolean
236
236
  | InlineChunkTest
237
- | { enable?: boolean | "auto"; test: InlineChunkTest };
237
+ | { enable?: boolean | 'auto', test: InlineChunkTest }
238
238
  ```
239
239
 
240
240
  ```ts
241
- import { defineConfig } from "@lynx-js/rspeedy";
241
+ import { defineConfig } from '@lynx-js/rspeedy'
242
242
 
243
243
  export default defineConfig({
244
244
  output: {
245
245
  inlineScripts: ({ name, size }) => {
246
- return name.includes("foo") && size < 1000;
246
+ return name.includes('foo') && size < 1000
247
247
  },
248
248
  },
249
- });
249
+ })
250
250
  ```
251
251
 
252
252
  - docs: remove chunks: 'all' in comments ([#1168](https://github.com/lynx-family/lynx-stack/pull/1168))
@@ -289,13 +289,13 @@
289
289
  example:
290
290
 
291
291
  ```js
292
- import { defineConfig } from "@lynx-js/rspeedy";
292
+ import { defineConfig } from '@lynx-js/rspeedy'
293
293
 
294
294
  export default defineConfig({
295
295
  output: {
296
296
  inlineScripts: false,
297
297
  },
298
- });
298
+ })
299
299
  ```
300
300
 
301
301
  - Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
@@ -315,12 +315,12 @@
315
315
  example:
316
316
 
317
317
  ```js
318
- import { defineConfig } from "@lynx-js/rspeedy";
318
+ import { defineConfig } from '@lynx-js/rspeedy'
319
319
  export default defineConfig({
320
320
  source: {
321
- preEntry: "./src/polyfill.ts",
321
+ preEntry: './src/polyfill.ts',
322
322
  },
323
- });
323
+ })
324
324
  ```
325
325
 
326
326
  - Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
@@ -331,17 +331,17 @@
331
331
 
332
332
  ```js
333
333
  export const myPlugin = {
334
- name: "my-plugin",
334
+ name: 'my-plugin',
335
335
  setup(api) {
336
- const { callerName } = api.context;
336
+ const { callerName } = api.context
337
337
 
338
- if (callerName === "rslib") {
338
+ if (callerName === 'rslib') {
339
339
  // ...
340
- } else if (callerName === "rspeedy") {
340
+ } else if (callerName === 'rspeedy') {
341
341
  // ...
342
342
  }
343
343
  },
344
- };
344
+ }
345
345
  ```
346
346
 
347
347
  - Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
@@ -364,7 +364,7 @@
364
364
  Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
365
365
 
366
366
  ```js
367
- import { defineConfig } from "@lynx-js/rspeedy";
367
+ import { defineConfig } from '@lynx-js/rspeedy'
368
368
 
369
369
  export default defineConfig({
370
370
  tools: {
@@ -374,7 +374,7 @@
374
374
  },
375
375
  },
376
376
  },
377
- });
377
+ })
378
378
  ```
379
379
 
380
380
  See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
@@ -506,12 +506,12 @@
506
506
  example:
507
507
 
508
508
  ```js
509
- import { defineConfig } from "@lynx-js/rspeedy";
509
+ import { defineConfig } from '@lynx-js/rspeedy'
510
510
  export default defineConfig({
511
511
  server: {
512
- base: "/dist",
512
+ base: '/dist',
513
513
  },
514
- });
514
+ })
515
515
  ```
516
516
 
517
517
  - Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
@@ -564,11 +564,11 @@
564
564
  You can switch to other tools by using:
565
565
 
566
566
  ```js
567
- import { defineConfig } from "@lynx-js/rspeedy";
567
+ import { defineConfig } from '@lynx-js/rspeedy'
568
568
  import {
569
569
  CssMinimizerWebpackPlugin,
570
570
  pluginCssMinimizer,
571
- } from "@rsbuild/plugin-css-minimizer";
571
+ } from '@rsbuild/plugin-css-minimizer'
572
572
 
573
573
  export default defineConfig({
574
574
  plugins: [
@@ -581,7 +581,7 @@
581
581
  },
582
582
  }),
583
583
  ],
584
- });
584
+ })
585
585
  ```
586
586
 
587
587
  See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
@@ -591,8 +591,8 @@
591
591
  You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
592
592
 
593
593
  ```js
594
- import { defineConfig } from "@lynx-js/rspeedy";
595
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
594
+ import { defineConfig } from '@lynx-js/rspeedy'
595
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
596
596
 
597
597
  export default defineConfig({
598
598
  plugins: [
@@ -604,7 +604,7 @@
604
604
  },
605
605
  }),
606
606
  ],
607
- });
607
+ })
608
608
  ```
609
609
 
610
610
  ## 0.7.1
@@ -624,7 +624,7 @@
624
624
  You may turn it off using `output.minify.css: false`:
625
625
 
626
626
  ```js
627
- import { defineConfig } from "@lynx-js/rspeedy";
627
+ import { defineConfig } from '@lynx-js/rspeedy'
628
628
 
629
629
  export default defineConfig({
630
630
  output: {
@@ -632,18 +632,18 @@
632
632
  css: false,
633
633
  },
634
634
  },
635
- });
635
+ })
636
636
  ```
637
637
 
638
638
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
639
639
 
640
640
  ```js
641
- import { defineConfig } from "@lynx-js/rspeedy";
642
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
641
+ import { defineConfig } from '@lynx-js/rspeedy'
642
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
643
643
 
644
644
  export default defineConfig({
645
645
  plugins: [pluginCssMinimizer()],
646
- });
646
+ })
647
647
  ```
648
648
 
649
649
  - 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
@@ -670,22 +670,22 @@
670
670
  - The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
671
671
 
672
672
  ```js
673
- import { defineConfig } from "@lynx-js/rspeedy";
673
+ import { defineConfig } from '@lynx-js/rspeedy'
674
674
 
675
675
  export default defineConfig({
676
676
  dev: {
677
677
  watchFiles: [
678
678
  {
679
- type: "reload-server",
680
- paths: ["public/**/*.txt"],
679
+ type: 'reload-server',
680
+ paths: ['public/**/*.txt'],
681
681
  },
682
682
  {
683
- type: "reload-page",
684
- paths: ["public/**/*.json"],
683
+ type: 'reload-page',
684
+ paths: ['public/**/*.json'],
685
685
  },
686
686
  ],
687
687
  },
688
- });
688
+ })
689
689
  ```
690
690
 
691
691
  - be9b003: Add `source.exclude`.
@@ -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.3"
44
+ rE: "0.11.4"
45
45
  };
46
46
  const version = package_namespaceObject.rE;
47
47
  const rspackVersion = core_.rspack.rspackVersion;
@@ -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.3"
14
+ rE: "0.11.4"
15
15
  };
16
16
  const version = package_namespaceObject.rE;
17
17
  const rspackVersion = core_.rspack.rspackVersion;
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.3"
111
+ rE: "0.11.4"
112
112
  };
113
113
  const version = package_namespaceObject.rE;
114
114
  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.4-canary-20250925-6180e11d",
3
+ "version": "0.11.4",
4
4
  "description": "A webpack/rspack-based frontend toolchain for Lynx",
5
5
  "keywords": [
6
6
  "webpack",