@lynx-js/rspeedy-canary 0.11.8-canary-20251030-53eed0a5 → 0.11.8

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.8-canary-20251030071334-53eed0a562fb32455214a94d198f1516cb4359eb
3
+ ## 0.11.8
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -9,7 +9,7 @@
9
9
  - print URLs with labels
10
10
 
11
11
  - Updated dependencies []:
12
- - @lynx-js/web-rsbuild-server-middleware@0.18.2-canary-20251030071334-53eed0a562fb32455214a94d198f1516cb4359eb
12
+ - @lynx-js/web-rsbuild-server-middleware@0.18.2
13
13
 
14
14
  ## 0.11.7
15
15
 
@@ -69,11 +69,11 @@
69
69
  - Support `command` and `env` parameters in the function exported by `lynx.config.js`. ([#1669](https://github.com/lynx-family/lynx-stack/pull/1669))
70
70
 
71
71
  ```js
72
- import { defineConfig } from "@lynx-js/rspeedy";
72
+ import { defineConfig } from '@lynx-js/rspeedy'
73
73
 
74
74
  export default defineConfig(({ command, env }) => {
75
- const isBuild = command === "build";
76
- const isTest = env === "test";
75
+ const isBuild = command === 'build'
76
+ const isTest = env === 'test'
77
77
 
78
78
  return {
79
79
  output: {
@@ -82,8 +82,8 @@
82
82
  performance: {
83
83
  buildCache: isBuild,
84
84
  },
85
- };
86
- });
85
+ }
86
+ })
87
87
  ```
88
88
 
89
89
  - Support `resolve.dedupe`. ([#1671](https://github.com/lynx-family/lynx-stack/pull/1671))
@@ -91,30 +91,30 @@
91
91
  This is useful when having multiple duplicated packages in the bundle:
92
92
 
93
93
  ```js
94
- import { defineConfig } from "@lynx-js/rspeedy";
94
+ import { defineConfig } from '@lynx-js/rspeedy'
95
95
 
96
96
  export default defineConfig({
97
97
  resolve: {
98
- dedupe: ["tslib"],
98
+ dedupe: ['tslib'],
99
99
  },
100
- });
100
+ })
101
101
  ```
102
102
 
103
103
  - Support `resolve.aliasStrategy` for controlling priority between `tsconfig.json` paths and `resolve.alias` ([#1722](https://github.com/lynx-family/lynx-stack/pull/1722))
104
104
 
105
105
  ```js
106
- import { defineConfig } from "@lynx-js/rspeedy";
106
+ import { defineConfig } from '@lynx-js/rspeedy'
107
107
 
108
108
  export default defineConfig({
109
109
  resolve: {
110
110
  alias: {
111
- "@": "./src",
111
+ '@': './src',
112
112
  },
113
113
  // 'prefer-tsconfig' (default): tsconfig.json paths take priority
114
114
  // 'prefer-alias': resolve.alias takes priority
115
- aliasStrategy: "prefer-alias",
115
+ aliasStrategy: 'prefer-alias',
116
116
  },
117
- });
117
+ })
118
118
  ```
119
119
 
120
120
  - Bump Rsbuild v1.5.4 with Rspack v1.5.2. ([#1644](https://github.com/lynx-family/lynx-stack/pull/1644))
@@ -134,7 +134,7 @@
134
134
  - Add `output.dataUriLimit.*` for fine-grained control of asset inlining. ([#1648](https://github.com/lynx-family/lynx-stack/pull/1648))
135
135
 
136
136
  ```js
137
- import { defineConfig } from "@lynx-js/rspeedy";
137
+ import { defineConfig } from '@lynx-js/rspeedy'
138
138
 
139
139
  export default defineConfig({
140
140
  output: {
@@ -143,7 +143,7 @@
143
143
  media: 0,
144
144
  },
145
145
  },
146
- });
146
+ })
147
147
  ```
148
148
 
149
149
  ## 0.11.0
@@ -263,28 +263,28 @@
263
263
 
264
264
  ```ts
265
265
  type InlineChunkTestFunction = (params: {
266
- size: number;
267
- name: string;
268
- }) => boolean;
266
+ size: number
267
+ name: string
268
+ }) => boolean
269
269
 
270
- type InlineChunkTest = RegExp | InlineChunkTestFunction;
270
+ type InlineChunkTest = RegExp | InlineChunkTestFunction
271
271
 
272
272
  type InlineChunkConfig =
273
273
  | boolean
274
274
  | InlineChunkTest
275
- | { enable?: boolean | "auto"; test: InlineChunkTest };
275
+ | { enable?: boolean | 'auto', test: InlineChunkTest }
276
276
  ```
277
277
 
278
278
  ```ts
279
- import { defineConfig } from "@lynx-js/rspeedy";
279
+ import { defineConfig } from '@lynx-js/rspeedy'
280
280
 
281
281
  export default defineConfig({
282
282
  output: {
283
283
  inlineScripts: ({ name, size }) => {
284
- return name.includes("foo") && size < 1000;
284
+ return name.includes('foo') && size < 1000
285
285
  },
286
286
  },
287
- });
287
+ })
288
288
  ```
289
289
 
290
290
  - docs: remove chunks: 'all' in comments ([#1168](https://github.com/lynx-family/lynx-stack/pull/1168))
@@ -327,13 +327,13 @@
327
327
  example:
328
328
 
329
329
  ```js
330
- import { defineConfig } from "@lynx-js/rspeedy";
330
+ import { defineConfig } from '@lynx-js/rspeedy'
331
331
 
332
332
  export default defineConfig({
333
333
  output: {
334
334
  inlineScripts: false,
335
335
  },
336
- });
336
+ })
337
337
  ```
338
338
 
339
339
  - Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
@@ -353,12 +353,12 @@
353
353
  example:
354
354
 
355
355
  ```js
356
- import { defineConfig } from "@lynx-js/rspeedy";
356
+ import { defineConfig } from '@lynx-js/rspeedy'
357
357
  export default defineConfig({
358
358
  source: {
359
- preEntry: "./src/polyfill.ts",
359
+ preEntry: './src/polyfill.ts',
360
360
  },
361
- });
361
+ })
362
362
  ```
363
363
 
364
364
  - Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
@@ -369,17 +369,17 @@
369
369
 
370
370
  ```js
371
371
  export const myPlugin = {
372
- name: "my-plugin",
372
+ name: 'my-plugin',
373
373
  setup(api) {
374
- const { callerName } = api.context;
374
+ const { callerName } = api.context
375
375
 
376
- if (callerName === "rslib") {
376
+ if (callerName === 'rslib') {
377
377
  // ...
378
- } else if (callerName === "rspeedy") {
378
+ } else if (callerName === 'rspeedy') {
379
379
  // ...
380
380
  }
381
381
  },
382
- };
382
+ }
383
383
  ```
384
384
 
385
385
  - Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
@@ -402,7 +402,7 @@
402
402
  Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
403
403
 
404
404
  ```js
405
- import { defineConfig } from "@lynx-js/rspeedy";
405
+ import { defineConfig } from '@lynx-js/rspeedy'
406
406
 
407
407
  export default defineConfig({
408
408
  tools: {
@@ -412,7 +412,7 @@
412
412
  },
413
413
  },
414
414
  },
415
- });
415
+ })
416
416
  ```
417
417
 
418
418
  See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
@@ -544,12 +544,12 @@
544
544
  example:
545
545
 
546
546
  ```js
547
- import { defineConfig } from "@lynx-js/rspeedy";
547
+ import { defineConfig } from '@lynx-js/rspeedy'
548
548
  export default defineConfig({
549
549
  server: {
550
- base: "/dist",
550
+ base: '/dist',
551
551
  },
552
- });
552
+ })
553
553
  ```
554
554
 
555
555
  - Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
@@ -602,11 +602,11 @@
602
602
  You can switch to other tools by using:
603
603
 
604
604
  ```js
605
- import { defineConfig } from "@lynx-js/rspeedy";
605
+ import { defineConfig } from '@lynx-js/rspeedy'
606
606
  import {
607
607
  CssMinimizerWebpackPlugin,
608
608
  pluginCssMinimizer,
609
- } from "@rsbuild/plugin-css-minimizer";
609
+ } from '@rsbuild/plugin-css-minimizer'
610
610
 
611
611
  export default defineConfig({
612
612
  plugins: [
@@ -619,7 +619,7 @@
619
619
  },
620
620
  }),
621
621
  ],
622
- });
622
+ })
623
623
  ```
624
624
 
625
625
  See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
@@ -629,8 +629,8 @@
629
629
  You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
630
630
 
631
631
  ```js
632
- import { defineConfig } from "@lynx-js/rspeedy";
633
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
632
+ import { defineConfig } from '@lynx-js/rspeedy'
633
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
634
634
 
635
635
  export default defineConfig({
636
636
  plugins: [
@@ -642,7 +642,7 @@
642
642
  },
643
643
  }),
644
644
  ],
645
- });
645
+ })
646
646
  ```
647
647
 
648
648
  ## 0.7.1
@@ -662,7 +662,7 @@
662
662
  You may turn it off using `output.minify.css: false`:
663
663
 
664
664
  ```js
665
- import { defineConfig } from "@lynx-js/rspeedy";
665
+ import { defineConfig } from '@lynx-js/rspeedy'
666
666
 
667
667
  export default defineConfig({
668
668
  output: {
@@ -670,18 +670,18 @@
670
670
  css: false,
671
671
  },
672
672
  },
673
- });
673
+ })
674
674
  ```
675
675
 
676
676
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
677
677
 
678
678
  ```js
679
- import { defineConfig } from "@lynx-js/rspeedy";
680
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
679
+ import { defineConfig } from '@lynx-js/rspeedy'
680
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
681
681
 
682
682
  export default defineConfig({
683
683
  plugins: [pluginCssMinimizer()],
684
- });
684
+ })
685
685
  ```
686
686
 
687
687
  - 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
@@ -708,22 +708,22 @@
708
708
  - The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
709
709
 
710
710
  ```js
711
- import { defineConfig } from "@lynx-js/rspeedy";
711
+ import { defineConfig } from '@lynx-js/rspeedy'
712
712
 
713
713
  export default defineConfig({
714
714
  dev: {
715
715
  watchFiles: [
716
716
  {
717
- type: "reload-server",
718
- paths: ["public/**/*.txt"],
717
+ type: 'reload-server',
718
+ paths: ['public/**/*.txt'],
719
719
  },
720
720
  {
721
- type: "reload-page",
722
- paths: ["public/**/*.json"],
721
+ type: 'reload-page',
722
+ paths: ['public/**/*.json'],
723
723
  },
724
724
  ],
725
725
  },
726
- });
726
+ })
727
727
  ```
728
728
 
729
729
  - be9b003: Add `source.exclude`.
@@ -63,7 +63,7 @@ export const __webpack_modules__ = {
63
63
  });
64
64
  var core_ = __webpack_require__("@rsbuild/core");
65
65
  var package_namespaceObject = {
66
- rE: "0.11.7"
66
+ rE: "0.11.8"
67
67
  };
68
68
  const version = package_namespaceObject.rE;
69
69
  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.7"
14
+ rE: "0.11.8"
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.7"
111
+ rE: "0.11.8"
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.8-canary-20251030-53eed0a5",
3
+ "version": "0.11.8",
4
4
  "description": "A webpack/rspack-based frontend toolchain for Lynx",
5
5
  "keywords": [
6
6
  "webpack",
@@ -50,7 +50,7 @@
50
50
  "dependencies": {
51
51
  "@lynx-js/cache-events-webpack-plugin": "npm:@lynx-js/cache-events-webpack-plugin-canary@0.0.2",
52
52
  "@lynx-js/chunk-loading-webpack-plugin": "npm:@lynx-js/chunk-loading-webpack-plugin-canary@0.3.3",
53
- "@lynx-js/web-rsbuild-server-middleware": "npm:@lynx-js/web-rsbuild-server-middleware-canary@0.18.2-canary-20251030-53eed0a5",
53
+ "@lynx-js/web-rsbuild-server-middleware": "npm:@lynx-js/web-rsbuild-server-middleware-canary@0.18.2",
54
54
  "@lynx-js/webpack-dev-transport": "npm:@lynx-js/webpack-dev-transport-canary@0.2.0",
55
55
  "@lynx-js/websocket": "npm:@lynx-js/websocket-canary@0.0.4",
56
56
  "@rsbuild/core": "1.5.17",