@lynx-js/rspeedy-canary 0.11.5-canary-20251001-734ff75a → 0.11.5

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.5-canary-20251001092331-734ff75abe294cfec61120df758d5aa548011569
3
+ ## 0.11.5
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -37,11 +37,11 @@
37
37
  - Support `command` and `env` parameters in the function exported by `lynx.config.js`. ([#1669](https://github.com/lynx-family/lynx-stack/pull/1669))
38
38
 
39
39
  ```js
40
- import { defineConfig } from "@lynx-js/rspeedy";
40
+ import { defineConfig } from '@lynx-js/rspeedy'
41
41
 
42
42
  export default defineConfig(({ command, env }) => {
43
- const isBuild = command === "build";
44
- const isTest = env === "test";
43
+ const isBuild = command === 'build'
44
+ const isTest = env === 'test'
45
45
 
46
46
  return {
47
47
  output: {
@@ -50,8 +50,8 @@
50
50
  performance: {
51
51
  buildCache: isBuild,
52
52
  },
53
- };
54
- });
53
+ }
54
+ })
55
55
  ```
56
56
 
57
57
  - Support `resolve.dedupe`. ([#1671](https://github.com/lynx-family/lynx-stack/pull/1671))
@@ -59,30 +59,30 @@
59
59
  This is useful when having multiple duplicated packages in the bundle:
60
60
 
61
61
  ```js
62
- import { defineConfig } from "@lynx-js/rspeedy";
62
+ import { defineConfig } from '@lynx-js/rspeedy'
63
63
 
64
64
  export default defineConfig({
65
65
  resolve: {
66
- dedupe: ["tslib"],
66
+ dedupe: ['tslib'],
67
67
  },
68
- });
68
+ })
69
69
  ```
70
70
 
71
71
  - Support `resolve.aliasStrategy` for controlling priority between `tsconfig.json` paths and `resolve.alias` ([#1722](https://github.com/lynx-family/lynx-stack/pull/1722))
72
72
 
73
73
  ```js
74
- import { defineConfig } from "@lynx-js/rspeedy";
74
+ import { defineConfig } from '@lynx-js/rspeedy'
75
75
 
76
76
  export default defineConfig({
77
77
  resolve: {
78
78
  alias: {
79
- "@": "./src",
79
+ '@': './src',
80
80
  },
81
81
  // 'prefer-tsconfig' (default): tsconfig.json paths take priority
82
82
  // 'prefer-alias': resolve.alias takes priority
83
- aliasStrategy: "prefer-alias",
83
+ aliasStrategy: 'prefer-alias',
84
84
  },
85
- });
85
+ })
86
86
  ```
87
87
 
88
88
  - Bump Rsbuild v1.5.4 with Rspack v1.5.2. ([#1644](https://github.com/lynx-family/lynx-stack/pull/1644))
@@ -102,7 +102,7 @@
102
102
  - Add `output.dataUriLimit.*` for fine-grained control of asset inlining. ([#1648](https://github.com/lynx-family/lynx-stack/pull/1648))
103
103
 
104
104
  ```js
105
- import { defineConfig } from "@lynx-js/rspeedy";
105
+ import { defineConfig } from '@lynx-js/rspeedy'
106
106
 
107
107
  export default defineConfig({
108
108
  output: {
@@ -111,7 +111,7 @@
111
111
  media: 0,
112
112
  },
113
113
  },
114
- });
114
+ })
115
115
  ```
116
116
 
117
117
  ## 0.11.0
@@ -231,28 +231,28 @@
231
231
 
232
232
  ```ts
233
233
  type InlineChunkTestFunction = (params: {
234
- size: number;
235
- name: string;
236
- }) => boolean;
234
+ size: number
235
+ name: string
236
+ }) => boolean
237
237
 
238
- type InlineChunkTest = RegExp | InlineChunkTestFunction;
238
+ type InlineChunkTest = RegExp | InlineChunkTestFunction
239
239
 
240
240
  type InlineChunkConfig =
241
241
  | boolean
242
242
  | InlineChunkTest
243
- | { enable?: boolean | "auto"; test: InlineChunkTest };
243
+ | { enable?: boolean | 'auto', test: InlineChunkTest }
244
244
  ```
245
245
 
246
246
  ```ts
247
- import { defineConfig } from "@lynx-js/rspeedy";
247
+ import { defineConfig } from '@lynx-js/rspeedy'
248
248
 
249
249
  export default defineConfig({
250
250
  output: {
251
251
  inlineScripts: ({ name, size }) => {
252
- return name.includes("foo") && size < 1000;
252
+ return name.includes('foo') && size < 1000
253
253
  },
254
254
  },
255
- });
255
+ })
256
256
  ```
257
257
 
258
258
  - docs: remove chunks: 'all' in comments ([#1168](https://github.com/lynx-family/lynx-stack/pull/1168))
@@ -295,13 +295,13 @@
295
295
  example:
296
296
 
297
297
  ```js
298
- import { defineConfig } from "@lynx-js/rspeedy";
298
+ import { defineConfig } from '@lynx-js/rspeedy'
299
299
 
300
300
  export default defineConfig({
301
301
  output: {
302
302
  inlineScripts: false,
303
303
  },
304
- });
304
+ })
305
305
  ```
306
306
 
307
307
  - Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
@@ -321,12 +321,12 @@
321
321
  example:
322
322
 
323
323
  ```js
324
- import { defineConfig } from "@lynx-js/rspeedy";
324
+ import { defineConfig } from '@lynx-js/rspeedy'
325
325
  export default defineConfig({
326
326
  source: {
327
- preEntry: "./src/polyfill.ts",
327
+ preEntry: './src/polyfill.ts',
328
328
  },
329
- });
329
+ })
330
330
  ```
331
331
 
332
332
  - Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
@@ -337,17 +337,17 @@
337
337
 
338
338
  ```js
339
339
  export const myPlugin = {
340
- name: "my-plugin",
340
+ name: 'my-plugin',
341
341
  setup(api) {
342
- const { callerName } = api.context;
342
+ const { callerName } = api.context
343
343
 
344
- if (callerName === "rslib") {
344
+ if (callerName === 'rslib') {
345
345
  // ...
346
- } else if (callerName === "rspeedy") {
346
+ } else if (callerName === 'rspeedy') {
347
347
  // ...
348
348
  }
349
349
  },
350
- };
350
+ }
351
351
  ```
352
352
 
353
353
  - Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
@@ -370,7 +370,7 @@
370
370
  Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
371
371
 
372
372
  ```js
373
- import { defineConfig } from "@lynx-js/rspeedy";
373
+ import { defineConfig } from '@lynx-js/rspeedy'
374
374
 
375
375
  export default defineConfig({
376
376
  tools: {
@@ -380,7 +380,7 @@
380
380
  },
381
381
  },
382
382
  },
383
- });
383
+ })
384
384
  ```
385
385
 
386
386
  See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
@@ -512,12 +512,12 @@
512
512
  example:
513
513
 
514
514
  ```js
515
- import { defineConfig } from "@lynx-js/rspeedy";
515
+ import { defineConfig } from '@lynx-js/rspeedy'
516
516
  export default defineConfig({
517
517
  server: {
518
- base: "/dist",
518
+ base: '/dist',
519
519
  },
520
- });
520
+ })
521
521
  ```
522
522
 
523
523
  - Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
@@ -570,11 +570,11 @@
570
570
  You can switch to other tools by using:
571
571
 
572
572
  ```js
573
- import { defineConfig } from "@lynx-js/rspeedy";
573
+ import { defineConfig } from '@lynx-js/rspeedy'
574
574
  import {
575
575
  CssMinimizerWebpackPlugin,
576
576
  pluginCssMinimizer,
577
- } from "@rsbuild/plugin-css-minimizer";
577
+ } from '@rsbuild/plugin-css-minimizer'
578
578
 
579
579
  export default defineConfig({
580
580
  plugins: [
@@ -587,7 +587,7 @@
587
587
  },
588
588
  }),
589
589
  ],
590
- });
590
+ })
591
591
  ```
592
592
 
593
593
  See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
@@ -597,8 +597,8 @@
597
597
  You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
598
598
 
599
599
  ```js
600
- import { defineConfig } from "@lynx-js/rspeedy";
601
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
600
+ import { defineConfig } from '@lynx-js/rspeedy'
601
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
602
602
 
603
603
  export default defineConfig({
604
604
  plugins: [
@@ -610,7 +610,7 @@
610
610
  },
611
611
  }),
612
612
  ],
613
- });
613
+ })
614
614
  ```
615
615
 
616
616
  ## 0.7.1
@@ -630,7 +630,7 @@
630
630
  You may turn it off using `output.minify.css: false`:
631
631
 
632
632
  ```js
633
- import { defineConfig } from "@lynx-js/rspeedy";
633
+ import { defineConfig } from '@lynx-js/rspeedy'
634
634
 
635
635
  export default defineConfig({
636
636
  output: {
@@ -638,18 +638,18 @@
638
638
  css: false,
639
639
  },
640
640
  },
641
- });
641
+ })
642
642
  ```
643
643
 
644
644
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
645
645
 
646
646
  ```js
647
- import { defineConfig } from "@lynx-js/rspeedy";
648
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
647
+ import { defineConfig } from '@lynx-js/rspeedy'
648
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
649
649
 
650
650
  export default defineConfig({
651
651
  plugins: [pluginCssMinimizer()],
652
- });
652
+ })
653
653
  ```
654
654
 
655
655
  - 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
@@ -676,22 +676,22 @@
676
676
  - The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
677
677
 
678
678
  ```js
679
- import { defineConfig } from "@lynx-js/rspeedy";
679
+ import { defineConfig } from '@lynx-js/rspeedy'
680
680
 
681
681
  export default defineConfig({
682
682
  dev: {
683
683
  watchFiles: [
684
684
  {
685
- type: "reload-server",
686
- paths: ["public/**/*.txt"],
685
+ type: 'reload-server',
686
+ paths: ['public/**/*.txt'],
687
687
  },
688
688
  {
689
- type: "reload-page",
690
- paths: ["public/**/*.json"],
689
+ type: 'reload-page',
690
+ paths: ['public/**/*.json'],
691
691
  },
692
692
  ],
693
693
  },
694
- });
694
+ })
695
695
  ```
696
696
 
697
697
  - 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.4"
44
+ rE: "0.11.5"
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.4"
14
+ rE: "0.11.5"
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.4"
111
+ rE: "0.11.5"
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.5-canary-20251001-734ff75a",
3
+ "version": "0.11.5",
4
4
  "description": "A webpack/rspack-based frontend toolchain for Lynx",
5
5
  "keywords": [
6
6
  "webpack",