@lynx-js/rspeedy-canary 0.12.3-canary-20251222-c5da3b2e → 0.12.3

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,13 +1,13 @@
1
1
  # @lynx-js/rspeedy
2
2
 
3
- ## 0.12.3-canary-20251222040638-c5da3b2e8ffc0298bebb8014a84e7809bcf43ffd
3
+ ## 0.12.3
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Support environment variants to enable multiple configurations for the same targets. ([#1969](https://github.com/lynx-family/lynx-stack/pull/1969))
8
8
 
9
9
  - Updated dependencies []:
10
- - @lynx-js/web-rsbuild-server-middleware@0.19.2-canary-20251222040638-c5da3b2e8ffc0298bebb8014a84e7809bcf43ffd
10
+ - @lynx-js/web-rsbuild-server-middleware@0.19.2
11
11
 
12
12
  ## 0.12.2
13
13
 
@@ -114,11 +114,11 @@
114
114
  - Support `command` and `env` parameters in the function exported by `lynx.config.js`. ([#1669](https://github.com/lynx-family/lynx-stack/pull/1669))
115
115
 
116
116
  ```js
117
- import { defineConfig } from "@lynx-js/rspeedy";
117
+ import { defineConfig } from '@lynx-js/rspeedy'
118
118
 
119
119
  export default defineConfig(({ command, env }) => {
120
- const isBuild = command === "build";
121
- const isTest = env === "test";
120
+ const isBuild = command === 'build'
121
+ const isTest = env === 'test'
122
122
 
123
123
  return {
124
124
  output: {
@@ -127,8 +127,8 @@
127
127
  performance: {
128
128
  buildCache: isBuild,
129
129
  },
130
- };
131
- });
130
+ }
131
+ })
132
132
  ```
133
133
 
134
134
  - Support `resolve.dedupe`. ([#1671](https://github.com/lynx-family/lynx-stack/pull/1671))
@@ -136,30 +136,30 @@
136
136
  This is useful when having multiple duplicated packages in the bundle:
137
137
 
138
138
  ```js
139
- import { defineConfig } from "@lynx-js/rspeedy";
139
+ import { defineConfig } from '@lynx-js/rspeedy'
140
140
 
141
141
  export default defineConfig({
142
142
  resolve: {
143
- dedupe: ["tslib"],
143
+ dedupe: ['tslib'],
144
144
  },
145
- });
145
+ })
146
146
  ```
147
147
 
148
148
  - Support `resolve.aliasStrategy` for controlling priority between `tsconfig.json` paths and `resolve.alias` ([#1722](https://github.com/lynx-family/lynx-stack/pull/1722))
149
149
 
150
150
  ```js
151
- import { defineConfig } from "@lynx-js/rspeedy";
151
+ import { defineConfig } from '@lynx-js/rspeedy'
152
152
 
153
153
  export default defineConfig({
154
154
  resolve: {
155
155
  alias: {
156
- "@": "./src",
156
+ '@': './src',
157
157
  },
158
158
  // 'prefer-tsconfig' (default): tsconfig.json paths take priority
159
159
  // 'prefer-alias': resolve.alias takes priority
160
- aliasStrategy: "prefer-alias",
160
+ aliasStrategy: 'prefer-alias',
161
161
  },
162
- });
162
+ })
163
163
  ```
164
164
 
165
165
  - Bump Rsbuild v1.5.4 with Rspack v1.5.2. ([#1644](https://github.com/lynx-family/lynx-stack/pull/1644))
@@ -179,7 +179,7 @@
179
179
  - Add `output.dataUriLimit.*` for fine-grained control of asset inlining. ([#1648](https://github.com/lynx-family/lynx-stack/pull/1648))
180
180
 
181
181
  ```js
182
- import { defineConfig } from "@lynx-js/rspeedy";
182
+ import { defineConfig } from '@lynx-js/rspeedy'
183
183
 
184
184
  export default defineConfig({
185
185
  output: {
@@ -188,7 +188,7 @@
188
188
  media: 0,
189
189
  },
190
190
  },
191
- });
191
+ })
192
192
  ```
193
193
 
194
194
  ## 0.11.0
@@ -308,28 +308,28 @@
308
308
 
309
309
  ```ts
310
310
  type InlineChunkTestFunction = (params: {
311
- size: number;
312
- name: string;
313
- }) => boolean;
311
+ size: number
312
+ name: string
313
+ }) => boolean
314
314
 
315
- type InlineChunkTest = RegExp | InlineChunkTestFunction;
315
+ type InlineChunkTest = RegExp | InlineChunkTestFunction
316
316
 
317
317
  type InlineChunkConfig =
318
318
  | boolean
319
319
  | InlineChunkTest
320
- | { enable?: boolean | "auto"; test: InlineChunkTest };
320
+ | { enable?: boolean | 'auto', test: InlineChunkTest }
321
321
  ```
322
322
 
323
323
  ```ts
324
- import { defineConfig } from "@lynx-js/rspeedy";
324
+ import { defineConfig } from '@lynx-js/rspeedy'
325
325
 
326
326
  export default defineConfig({
327
327
  output: {
328
328
  inlineScripts: ({ name, size }) => {
329
- return name.includes("foo") && size < 1000;
329
+ return name.includes('foo') && size < 1000
330
330
  },
331
331
  },
332
- });
332
+ })
333
333
  ```
334
334
 
335
335
  - docs: remove chunks: 'all' in comments ([#1168](https://github.com/lynx-family/lynx-stack/pull/1168))
@@ -372,13 +372,13 @@
372
372
  example:
373
373
 
374
374
  ```js
375
- import { defineConfig } from "@lynx-js/rspeedy";
375
+ import { defineConfig } from '@lynx-js/rspeedy'
376
376
 
377
377
  export default defineConfig({
378
378
  output: {
379
379
  inlineScripts: false,
380
380
  },
381
- });
381
+ })
382
382
  ```
383
383
 
384
384
  - Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
@@ -398,12 +398,12 @@
398
398
  example:
399
399
 
400
400
  ```js
401
- import { defineConfig } from "@lynx-js/rspeedy";
401
+ import { defineConfig } from '@lynx-js/rspeedy'
402
402
  export default defineConfig({
403
403
  source: {
404
- preEntry: "./src/polyfill.ts",
404
+ preEntry: './src/polyfill.ts',
405
405
  },
406
- });
406
+ })
407
407
  ```
408
408
 
409
409
  - Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
@@ -414,17 +414,17 @@
414
414
 
415
415
  ```js
416
416
  export const myPlugin = {
417
- name: "my-plugin",
417
+ name: 'my-plugin',
418
418
  setup(api) {
419
- const { callerName } = api.context;
419
+ const { callerName } = api.context
420
420
 
421
- if (callerName === "rslib") {
421
+ if (callerName === 'rslib') {
422
422
  // ...
423
- } else if (callerName === "rspeedy") {
423
+ } else if (callerName === 'rspeedy') {
424
424
  // ...
425
425
  }
426
426
  },
427
- };
427
+ }
428
428
  ```
429
429
 
430
430
  - Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
@@ -447,7 +447,7 @@
447
447
  Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
448
448
 
449
449
  ```js
450
- import { defineConfig } from "@lynx-js/rspeedy";
450
+ import { defineConfig } from '@lynx-js/rspeedy'
451
451
 
452
452
  export default defineConfig({
453
453
  tools: {
@@ -457,7 +457,7 @@
457
457
  },
458
458
  },
459
459
  },
460
- });
460
+ })
461
461
  ```
462
462
 
463
463
  See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
@@ -589,12 +589,12 @@
589
589
  example:
590
590
 
591
591
  ```js
592
- import { defineConfig } from "@lynx-js/rspeedy";
592
+ import { defineConfig } from '@lynx-js/rspeedy'
593
593
  export default defineConfig({
594
594
  server: {
595
- base: "/dist",
595
+ base: '/dist',
596
596
  },
597
- });
597
+ })
598
598
  ```
599
599
 
600
600
  - Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
@@ -647,11 +647,11 @@
647
647
  You can switch to other tools by using:
648
648
 
649
649
  ```js
650
- import { defineConfig } from "@lynx-js/rspeedy";
650
+ import { defineConfig } from '@lynx-js/rspeedy'
651
651
  import {
652
652
  CssMinimizerWebpackPlugin,
653
653
  pluginCssMinimizer,
654
- } from "@rsbuild/plugin-css-minimizer";
654
+ } from '@rsbuild/plugin-css-minimizer'
655
655
 
656
656
  export default defineConfig({
657
657
  plugins: [
@@ -664,7 +664,7 @@
664
664
  },
665
665
  }),
666
666
  ],
667
- });
667
+ })
668
668
  ```
669
669
 
670
670
  See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
@@ -674,8 +674,8 @@
674
674
  You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
675
675
 
676
676
  ```js
677
- import { defineConfig } from "@lynx-js/rspeedy";
678
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
677
+ import { defineConfig } from '@lynx-js/rspeedy'
678
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
679
679
 
680
680
  export default defineConfig({
681
681
  plugins: [
@@ -687,7 +687,7 @@
687
687
  },
688
688
  }),
689
689
  ],
690
- });
690
+ })
691
691
  ```
692
692
 
693
693
  ## 0.7.1
@@ -707,7 +707,7 @@
707
707
  You may turn it off using `output.minify.css: false`:
708
708
 
709
709
  ```js
710
- import { defineConfig } from "@lynx-js/rspeedy";
710
+ import { defineConfig } from '@lynx-js/rspeedy'
711
711
 
712
712
  export default defineConfig({
713
713
  output: {
@@ -715,18 +715,18 @@
715
715
  css: false,
716
716
  },
717
717
  },
718
- });
718
+ })
719
719
  ```
720
720
 
721
721
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
722
722
 
723
723
  ```js
724
- import { defineConfig } from "@lynx-js/rspeedy";
725
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
724
+ import { defineConfig } from '@lynx-js/rspeedy'
725
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
726
726
 
727
727
  export default defineConfig({
728
728
  plugins: [pluginCssMinimizer()],
729
- });
729
+ })
730
730
  ```
731
731
 
732
732
  - 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
@@ -753,22 +753,22 @@
753
753
  - The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
754
754
 
755
755
  ```js
756
- import { defineConfig } from "@lynx-js/rspeedy";
756
+ import { defineConfig } from '@lynx-js/rspeedy'
757
757
 
758
758
  export default defineConfig({
759
759
  dev: {
760
760
  watchFiles: [
761
761
  {
762
- type: "reload-server",
763
- paths: ["public/**/*.txt"],
762
+ type: 'reload-server',
763
+ paths: ['public/**/*.txt'],
764
764
  },
765
765
  {
766
- type: "reload-page",
767
- paths: ["public/**/*.json"],
766
+ type: 'reload-page',
767
+ paths: ['public/**/*.json'],
768
768
  },
769
769
  ],
770
770
  },
771
- });
771
+ })
772
772
  ```
773
773
 
774
774
  - 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.2"
66
+ rE: "0.12.3"
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.2"
14
+ rE: "0.12.3"
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.2"
111
+ rE: "0.12.3"
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.3-canary-20251222-c5da3b2e",
3
+ "version": "0.12.3",
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.2-canary-20251222-c5da3b2e",
53
+ "@lynx-js/web-rsbuild-server-middleware": "npm:@lynx-js/web-rsbuild-server-middleware-canary@0.19.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.6.13",