@lynx-js/rspeedy-canary 0.11.6 → 0.11.7-canary-20251015-16fd0e42

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +60 -54
  2. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @lynx-js/rspeedy
2
2
 
3
+ ## 0.11.7-canary-20251015040424-16fd0e42a576491122bc4e582581211e05e95587
4
+
5
+ ### Patch Changes
6
+
7
+ - Bump Rsbuild v1.5.17. ([#1889](https://github.com/lynx-family/lynx-stack/pull/1889))
8
+
3
9
  ## 0.11.6
4
10
 
5
11
  ### Patch Changes
@@ -45,11 +51,11 @@
45
51
  - Support `command` and `env` parameters in the function exported by `lynx.config.js`. ([#1669](https://github.com/lynx-family/lynx-stack/pull/1669))
46
52
 
47
53
  ```js
48
- import { defineConfig } from '@lynx-js/rspeedy'
54
+ import { defineConfig } from "@lynx-js/rspeedy";
49
55
 
50
56
  export default defineConfig(({ command, env }) => {
51
- const isBuild = command === 'build'
52
- const isTest = env === 'test'
57
+ const isBuild = command === "build";
58
+ const isTest = env === "test";
53
59
 
54
60
  return {
55
61
  output: {
@@ -58,8 +64,8 @@
58
64
  performance: {
59
65
  buildCache: isBuild,
60
66
  },
61
- }
62
- })
67
+ };
68
+ });
63
69
  ```
64
70
 
65
71
  - Support `resolve.dedupe`. ([#1671](https://github.com/lynx-family/lynx-stack/pull/1671))
@@ -67,30 +73,30 @@
67
73
  This is useful when having multiple duplicated packages in the bundle:
68
74
 
69
75
  ```js
70
- import { defineConfig } from '@lynx-js/rspeedy'
76
+ import { defineConfig } from "@lynx-js/rspeedy";
71
77
 
72
78
  export default defineConfig({
73
79
  resolve: {
74
- dedupe: ['tslib'],
80
+ dedupe: ["tslib"],
75
81
  },
76
- })
82
+ });
77
83
  ```
78
84
 
79
85
  - Support `resolve.aliasStrategy` for controlling priority between `tsconfig.json` paths and `resolve.alias` ([#1722](https://github.com/lynx-family/lynx-stack/pull/1722))
80
86
 
81
87
  ```js
82
- import { defineConfig } from '@lynx-js/rspeedy'
88
+ import { defineConfig } from "@lynx-js/rspeedy";
83
89
 
84
90
  export default defineConfig({
85
91
  resolve: {
86
92
  alias: {
87
- '@': './src',
93
+ "@": "./src",
88
94
  },
89
95
  // 'prefer-tsconfig' (default): tsconfig.json paths take priority
90
96
  // 'prefer-alias': resolve.alias takes priority
91
- aliasStrategy: 'prefer-alias',
97
+ aliasStrategy: "prefer-alias",
92
98
  },
93
- })
99
+ });
94
100
  ```
95
101
 
96
102
  - Bump Rsbuild v1.5.4 with Rspack v1.5.2. ([#1644](https://github.com/lynx-family/lynx-stack/pull/1644))
@@ -110,7 +116,7 @@
110
116
  - Add `output.dataUriLimit.*` for fine-grained control of asset inlining. ([#1648](https://github.com/lynx-family/lynx-stack/pull/1648))
111
117
 
112
118
  ```js
113
- import { defineConfig } from '@lynx-js/rspeedy'
119
+ import { defineConfig } from "@lynx-js/rspeedy";
114
120
 
115
121
  export default defineConfig({
116
122
  output: {
@@ -119,7 +125,7 @@
119
125
  media: 0,
120
126
  },
121
127
  },
122
- })
128
+ });
123
129
  ```
124
130
 
125
131
  ## 0.11.0
@@ -239,28 +245,28 @@
239
245
 
240
246
  ```ts
241
247
  type InlineChunkTestFunction = (params: {
242
- size: number
243
- name: string
244
- }) => boolean
248
+ size: number;
249
+ name: string;
250
+ }) => boolean;
245
251
 
246
- type InlineChunkTest = RegExp | InlineChunkTestFunction
252
+ type InlineChunkTest = RegExp | InlineChunkTestFunction;
247
253
 
248
254
  type InlineChunkConfig =
249
255
  | boolean
250
256
  | InlineChunkTest
251
- | { enable?: boolean | 'auto', test: InlineChunkTest }
257
+ | { enable?: boolean | "auto"; test: InlineChunkTest };
252
258
  ```
253
259
 
254
260
  ```ts
255
- import { defineConfig } from '@lynx-js/rspeedy'
261
+ import { defineConfig } from "@lynx-js/rspeedy";
256
262
 
257
263
  export default defineConfig({
258
264
  output: {
259
265
  inlineScripts: ({ name, size }) => {
260
- return name.includes('foo') && size < 1000
266
+ return name.includes("foo") && size < 1000;
261
267
  },
262
268
  },
263
- })
269
+ });
264
270
  ```
265
271
 
266
272
  - docs: remove chunks: 'all' in comments ([#1168](https://github.com/lynx-family/lynx-stack/pull/1168))
@@ -303,13 +309,13 @@
303
309
  example:
304
310
 
305
311
  ```js
306
- import { defineConfig } from '@lynx-js/rspeedy'
312
+ import { defineConfig } from "@lynx-js/rspeedy";
307
313
 
308
314
  export default defineConfig({
309
315
  output: {
310
316
  inlineScripts: false,
311
317
  },
312
- })
318
+ });
313
319
  ```
314
320
 
315
321
  - Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
@@ -329,12 +335,12 @@
329
335
  example:
330
336
 
331
337
  ```js
332
- import { defineConfig } from '@lynx-js/rspeedy'
338
+ import { defineConfig } from "@lynx-js/rspeedy";
333
339
  export default defineConfig({
334
340
  source: {
335
- preEntry: './src/polyfill.ts',
341
+ preEntry: "./src/polyfill.ts",
336
342
  },
337
- })
343
+ });
338
344
  ```
339
345
 
340
346
  - Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
@@ -345,17 +351,17 @@
345
351
 
346
352
  ```js
347
353
  export const myPlugin = {
348
- name: 'my-plugin',
354
+ name: "my-plugin",
349
355
  setup(api) {
350
- const { callerName } = api.context
356
+ const { callerName } = api.context;
351
357
 
352
- if (callerName === 'rslib') {
358
+ if (callerName === "rslib") {
353
359
  // ...
354
- } else if (callerName === 'rspeedy') {
360
+ } else if (callerName === "rspeedy") {
355
361
  // ...
356
362
  }
357
363
  },
358
- }
364
+ };
359
365
  ```
360
366
 
361
367
  - Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
@@ -378,7 +384,7 @@
378
384
  Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
379
385
 
380
386
  ```js
381
- import { defineConfig } from '@lynx-js/rspeedy'
387
+ import { defineConfig } from "@lynx-js/rspeedy";
382
388
 
383
389
  export default defineConfig({
384
390
  tools: {
@@ -388,7 +394,7 @@
388
394
  },
389
395
  },
390
396
  },
391
- })
397
+ });
392
398
  ```
393
399
 
394
400
  See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
@@ -520,12 +526,12 @@
520
526
  example:
521
527
 
522
528
  ```js
523
- import { defineConfig } from '@lynx-js/rspeedy'
529
+ import { defineConfig } from "@lynx-js/rspeedy";
524
530
  export default defineConfig({
525
531
  server: {
526
- base: '/dist',
532
+ base: "/dist",
527
533
  },
528
- })
534
+ });
529
535
  ```
530
536
 
531
537
  - Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
@@ -578,11 +584,11 @@
578
584
  You can switch to other tools by using:
579
585
 
580
586
  ```js
581
- import { defineConfig } from '@lynx-js/rspeedy'
587
+ import { defineConfig } from "@lynx-js/rspeedy";
582
588
  import {
583
589
  CssMinimizerWebpackPlugin,
584
590
  pluginCssMinimizer,
585
- } from '@rsbuild/plugin-css-minimizer'
591
+ } from "@rsbuild/plugin-css-minimizer";
586
592
 
587
593
  export default defineConfig({
588
594
  plugins: [
@@ -595,7 +601,7 @@
595
601
  },
596
602
  }),
597
603
  ],
598
- })
604
+ });
599
605
  ```
600
606
 
601
607
  See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
@@ -605,8 +611,8 @@
605
611
  You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
606
612
 
607
613
  ```js
608
- import { defineConfig } from '@lynx-js/rspeedy'
609
- import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
614
+ import { defineConfig } from "@lynx-js/rspeedy";
615
+ import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
610
616
 
611
617
  export default defineConfig({
612
618
  plugins: [
@@ -618,7 +624,7 @@
618
624
  },
619
625
  }),
620
626
  ],
621
- })
627
+ });
622
628
  ```
623
629
 
624
630
  ## 0.7.1
@@ -638,7 +644,7 @@
638
644
  You may turn it off using `output.minify.css: false`:
639
645
 
640
646
  ```js
641
- import { defineConfig } from '@lynx-js/rspeedy'
647
+ import { defineConfig } from "@lynx-js/rspeedy";
642
648
 
643
649
  export default defineConfig({
644
650
  output: {
@@ -646,18 +652,18 @@
646
652
  css: false,
647
653
  },
648
654
  },
649
- })
655
+ });
650
656
  ```
651
657
 
652
658
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
653
659
 
654
660
  ```js
655
- import { defineConfig } from '@lynx-js/rspeedy'
656
- import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
661
+ import { defineConfig } from "@lynx-js/rspeedy";
662
+ import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
657
663
 
658
664
  export default defineConfig({
659
665
  plugins: [pluginCssMinimizer()],
660
- })
666
+ });
661
667
  ```
662
668
 
663
669
  - 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
@@ -684,22 +690,22 @@
684
690
  - The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
685
691
 
686
692
  ```js
687
- import { defineConfig } from '@lynx-js/rspeedy'
693
+ import { defineConfig } from "@lynx-js/rspeedy";
688
694
 
689
695
  export default defineConfig({
690
696
  dev: {
691
697
  watchFiles: [
692
698
  {
693
- type: 'reload-server',
694
- paths: ['public/**/*.txt'],
699
+ type: "reload-server",
700
+ paths: ["public/**/*.txt"],
695
701
  },
696
702
  {
697
- type: 'reload-page',
698
- paths: ['public/**/*.json'],
703
+ type: "reload-page",
704
+ paths: ["public/**/*.json"],
699
705
  },
700
706
  ],
701
707
  },
702
- })
708
+ });
703
709
  ```
704
710
 
705
711
  - be9b003: Add `source.exclude`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/rspeedy-canary",
3
- "version": "0.11.6",
3
+ "version": "0.11.7-canary-20251015-16fd0e42",
4
4
  "description": "A webpack/rspack-based frontend toolchain for Lynx",
5
5
  "keywords": [
6
6
  "webpack",
@@ -52,7 +52,7 @@
52
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
- "@rsbuild/core": "1.5.13",
55
+ "@rsbuild/core": "1.5.17",
56
56
  "@rsbuild/plugin-css-minimizer": "1.0.3",
57
57
  "@rsdoctor/rspack-plugin": "1.2.3"
58
58
  },