@lynx-js/rspeedy-canary 0.12.4-canary-20251226-baaf6f44 → 0.12.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,11 +1,11 @@
1
1
  # @lynx-js/rspeedy
2
2
 
3
- ## 0.12.4-canary-20251226141052-baaf6f44d04338cd0417f9ab65250806aea52668
3
+ ## 0.12.4
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Updated dependencies []:
8
- - @lynx-js/web-rsbuild-server-middleware@0.19.3-canary-20251226141052-baaf6f44d04338cd0417f9ab65250806aea52668
8
+ - @lynx-js/web-rsbuild-server-middleware@0.19.3
9
9
 
10
10
  ## 0.12.3
11
11
 
@@ -121,11 +121,11 @@
121
121
  - Support `command` and `env` parameters in the function exported by `lynx.config.js`. ([#1669](https://github.com/lynx-family/lynx-stack/pull/1669))
122
122
 
123
123
  ```js
124
- import { defineConfig } from "@lynx-js/rspeedy";
124
+ import { defineConfig } from '@lynx-js/rspeedy'
125
125
 
126
126
  export default defineConfig(({ command, env }) => {
127
- const isBuild = command === "build";
128
- const isTest = env === "test";
127
+ const isBuild = command === 'build'
128
+ const isTest = env === 'test'
129
129
 
130
130
  return {
131
131
  output: {
@@ -134,8 +134,8 @@
134
134
  performance: {
135
135
  buildCache: isBuild,
136
136
  },
137
- };
138
- });
137
+ }
138
+ })
139
139
  ```
140
140
 
141
141
  - Support `resolve.dedupe`. ([#1671](https://github.com/lynx-family/lynx-stack/pull/1671))
@@ -143,30 +143,30 @@
143
143
  This is useful when having multiple duplicated packages in the bundle:
144
144
 
145
145
  ```js
146
- import { defineConfig } from "@lynx-js/rspeedy";
146
+ import { defineConfig } from '@lynx-js/rspeedy'
147
147
 
148
148
  export default defineConfig({
149
149
  resolve: {
150
- dedupe: ["tslib"],
150
+ dedupe: ['tslib'],
151
151
  },
152
- });
152
+ })
153
153
  ```
154
154
 
155
155
  - Support `resolve.aliasStrategy` for controlling priority between `tsconfig.json` paths and `resolve.alias` ([#1722](https://github.com/lynx-family/lynx-stack/pull/1722))
156
156
 
157
157
  ```js
158
- import { defineConfig } from "@lynx-js/rspeedy";
158
+ import { defineConfig } from '@lynx-js/rspeedy'
159
159
 
160
160
  export default defineConfig({
161
161
  resolve: {
162
162
  alias: {
163
- "@": "./src",
163
+ '@': './src',
164
164
  },
165
165
  // 'prefer-tsconfig' (default): tsconfig.json paths take priority
166
166
  // 'prefer-alias': resolve.alias takes priority
167
- aliasStrategy: "prefer-alias",
167
+ aliasStrategy: 'prefer-alias',
168
168
  },
169
- });
169
+ })
170
170
  ```
171
171
 
172
172
  - Bump Rsbuild v1.5.4 with Rspack v1.5.2. ([#1644](https://github.com/lynx-family/lynx-stack/pull/1644))
@@ -186,7 +186,7 @@
186
186
  - Add `output.dataUriLimit.*` for fine-grained control of asset inlining. ([#1648](https://github.com/lynx-family/lynx-stack/pull/1648))
187
187
 
188
188
  ```js
189
- import { defineConfig } from "@lynx-js/rspeedy";
189
+ import { defineConfig } from '@lynx-js/rspeedy'
190
190
 
191
191
  export default defineConfig({
192
192
  output: {
@@ -195,7 +195,7 @@
195
195
  media: 0,
196
196
  },
197
197
  },
198
- });
198
+ })
199
199
  ```
200
200
 
201
201
  ## 0.11.0
@@ -315,28 +315,28 @@
315
315
 
316
316
  ```ts
317
317
  type InlineChunkTestFunction = (params: {
318
- size: number;
319
- name: string;
320
- }) => boolean;
318
+ size: number
319
+ name: string
320
+ }) => boolean
321
321
 
322
- type InlineChunkTest = RegExp | InlineChunkTestFunction;
322
+ type InlineChunkTest = RegExp | InlineChunkTestFunction
323
323
 
324
324
  type InlineChunkConfig =
325
325
  | boolean
326
326
  | InlineChunkTest
327
- | { enable?: boolean | "auto"; test: InlineChunkTest };
327
+ | { enable?: boolean | 'auto', test: InlineChunkTest }
328
328
  ```
329
329
 
330
330
  ```ts
331
- import { defineConfig } from "@lynx-js/rspeedy";
331
+ import { defineConfig } from '@lynx-js/rspeedy'
332
332
 
333
333
  export default defineConfig({
334
334
  output: {
335
335
  inlineScripts: ({ name, size }) => {
336
- return name.includes("foo") && size < 1000;
336
+ return name.includes('foo') && size < 1000
337
337
  },
338
338
  },
339
- });
339
+ })
340
340
  ```
341
341
 
342
342
  - docs: remove chunks: 'all' in comments ([#1168](https://github.com/lynx-family/lynx-stack/pull/1168))
@@ -379,13 +379,13 @@
379
379
  example:
380
380
 
381
381
  ```js
382
- import { defineConfig } from "@lynx-js/rspeedy";
382
+ import { defineConfig } from '@lynx-js/rspeedy'
383
383
 
384
384
  export default defineConfig({
385
385
  output: {
386
386
  inlineScripts: false,
387
387
  },
388
- });
388
+ })
389
389
  ```
390
390
 
391
391
  - Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
@@ -405,12 +405,12 @@
405
405
  example:
406
406
 
407
407
  ```js
408
- import { defineConfig } from "@lynx-js/rspeedy";
408
+ import { defineConfig } from '@lynx-js/rspeedy'
409
409
  export default defineConfig({
410
410
  source: {
411
- preEntry: "./src/polyfill.ts",
411
+ preEntry: './src/polyfill.ts',
412
412
  },
413
- });
413
+ })
414
414
  ```
415
415
 
416
416
  - Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
@@ -421,17 +421,17 @@
421
421
 
422
422
  ```js
423
423
  export const myPlugin = {
424
- name: "my-plugin",
424
+ name: 'my-plugin',
425
425
  setup(api) {
426
- const { callerName } = api.context;
426
+ const { callerName } = api.context
427
427
 
428
- if (callerName === "rslib") {
428
+ if (callerName === 'rslib') {
429
429
  // ...
430
- } else if (callerName === "rspeedy") {
430
+ } else if (callerName === 'rspeedy') {
431
431
  // ...
432
432
  }
433
433
  },
434
- };
434
+ }
435
435
  ```
436
436
 
437
437
  - Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
@@ -454,7 +454,7 @@
454
454
  Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
455
455
 
456
456
  ```js
457
- import { defineConfig } from "@lynx-js/rspeedy";
457
+ import { defineConfig } from '@lynx-js/rspeedy'
458
458
 
459
459
  export default defineConfig({
460
460
  tools: {
@@ -464,7 +464,7 @@
464
464
  },
465
465
  },
466
466
  },
467
- });
467
+ })
468
468
  ```
469
469
 
470
470
  See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
@@ -596,12 +596,12 @@
596
596
  example:
597
597
 
598
598
  ```js
599
- import { defineConfig } from "@lynx-js/rspeedy";
599
+ import { defineConfig } from '@lynx-js/rspeedy'
600
600
  export default defineConfig({
601
601
  server: {
602
- base: "/dist",
602
+ base: '/dist',
603
603
  },
604
- });
604
+ })
605
605
  ```
606
606
 
607
607
  - Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
@@ -654,11 +654,11 @@
654
654
  You can switch to other tools by using:
655
655
 
656
656
  ```js
657
- import { defineConfig } from "@lynx-js/rspeedy";
657
+ import { defineConfig } from '@lynx-js/rspeedy'
658
658
  import {
659
659
  CssMinimizerWebpackPlugin,
660
660
  pluginCssMinimizer,
661
- } from "@rsbuild/plugin-css-minimizer";
661
+ } from '@rsbuild/plugin-css-minimizer'
662
662
 
663
663
  export default defineConfig({
664
664
  plugins: [
@@ -671,7 +671,7 @@
671
671
  },
672
672
  }),
673
673
  ],
674
- });
674
+ })
675
675
  ```
676
676
 
677
677
  See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
@@ -681,8 +681,8 @@
681
681
  You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
682
682
 
683
683
  ```js
684
- import { defineConfig } from "@lynx-js/rspeedy";
685
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
684
+ import { defineConfig } from '@lynx-js/rspeedy'
685
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
686
686
 
687
687
  export default defineConfig({
688
688
  plugins: [
@@ -694,7 +694,7 @@
694
694
  },
695
695
  }),
696
696
  ],
697
- });
697
+ })
698
698
  ```
699
699
 
700
700
  ## 0.7.1
@@ -714,7 +714,7 @@
714
714
  You may turn it off using `output.minify.css: false`:
715
715
 
716
716
  ```js
717
- import { defineConfig } from "@lynx-js/rspeedy";
717
+ import { defineConfig } from '@lynx-js/rspeedy'
718
718
 
719
719
  export default defineConfig({
720
720
  output: {
@@ -722,18 +722,18 @@
722
722
  css: false,
723
723
  },
724
724
  },
725
- });
725
+ })
726
726
  ```
727
727
 
728
728
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
729
729
 
730
730
  ```js
731
- import { defineConfig } from "@lynx-js/rspeedy";
732
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
731
+ import { defineConfig } from '@lynx-js/rspeedy'
732
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
733
733
 
734
734
  export default defineConfig({
735
735
  plugins: [pluginCssMinimizer()],
736
- });
736
+ })
737
737
  ```
738
738
 
739
739
  - 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
@@ -760,22 +760,22 @@
760
760
  - The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
761
761
 
762
762
  ```js
763
- import { defineConfig } from "@lynx-js/rspeedy";
763
+ import { defineConfig } from '@lynx-js/rspeedy'
764
764
 
765
765
  export default defineConfig({
766
766
  dev: {
767
767
  watchFiles: [
768
768
  {
769
- type: "reload-server",
770
- paths: ["public/**/*.txt"],
769
+ type: 'reload-server',
770
+ paths: ['public/**/*.txt'],
771
771
  },
772
772
  {
773
- type: "reload-page",
774
- paths: ["public/**/*.json"],
773
+ type: 'reload-page',
774
+ paths: ['public/**/*.json'],
775
775
  },
776
776
  ],
777
777
  },
778
- });
778
+ })
779
779
  ```
780
780
 
781
781
  - 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.12.3"
66
+ rE: "0.12.4"
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.12.3"
14
+ rE: "0.12.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.12.3"
111
+ rE: "0.12.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.12.4-canary-20251226-baaf6f44",
3
+ "version": "0.12.4",
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.19.3-canary-20251226-baaf6f44",
53
+ "@lynx-js/web-rsbuild-server-middleware": "npm:@lynx-js/web-rsbuild-server-middleware-canary@0.19.3",
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.6.13",