@lynx-js/rspeedy-canary 0.12.1-canary-20251205-6400f87b → 0.12.1

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.1-canary-20251205074811-6400f87b9b0370e5fe53ce37711d45932fede695
3
+ ## 0.12.1
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Bump Rsbuild v1.6.9 with Rspack v1.6.5. ([#1967](https://github.com/lynx-family/lynx-stack/pull/1967))
8
8
 
9
9
  - Updated dependencies []:
10
- - @lynx-js/web-rsbuild-server-middleware@0.19.0-canary-20251205074811-6400f87b9b0370e5fe53ce37711d45932fede695
10
+ - @lynx-js/web-rsbuild-server-middleware@0.19.0
11
11
 
12
12
  ## 0.12.0
13
13
 
@@ -96,11 +96,11 @@
96
96
  - Support `command` and `env` parameters in the function exported by `lynx.config.js`. ([#1669](https://github.com/lynx-family/lynx-stack/pull/1669))
97
97
 
98
98
  ```js
99
- import { defineConfig } from "@lynx-js/rspeedy";
99
+ import { defineConfig } from '@lynx-js/rspeedy'
100
100
 
101
101
  export default defineConfig(({ command, env }) => {
102
- const isBuild = command === "build";
103
- const isTest = env === "test";
102
+ const isBuild = command === 'build'
103
+ const isTest = env === 'test'
104
104
 
105
105
  return {
106
106
  output: {
@@ -109,8 +109,8 @@
109
109
  performance: {
110
110
  buildCache: isBuild,
111
111
  },
112
- };
113
- });
112
+ }
113
+ })
114
114
  ```
115
115
 
116
116
  - Support `resolve.dedupe`. ([#1671](https://github.com/lynx-family/lynx-stack/pull/1671))
@@ -118,30 +118,30 @@
118
118
  This is useful when having multiple duplicated packages in the bundle:
119
119
 
120
120
  ```js
121
- import { defineConfig } from "@lynx-js/rspeedy";
121
+ import { defineConfig } from '@lynx-js/rspeedy'
122
122
 
123
123
  export default defineConfig({
124
124
  resolve: {
125
- dedupe: ["tslib"],
125
+ dedupe: ['tslib'],
126
126
  },
127
- });
127
+ })
128
128
  ```
129
129
 
130
130
  - Support `resolve.aliasStrategy` for controlling priority between `tsconfig.json` paths and `resolve.alias` ([#1722](https://github.com/lynx-family/lynx-stack/pull/1722))
131
131
 
132
132
  ```js
133
- import { defineConfig } from "@lynx-js/rspeedy";
133
+ import { defineConfig } from '@lynx-js/rspeedy'
134
134
 
135
135
  export default defineConfig({
136
136
  resolve: {
137
137
  alias: {
138
- "@": "./src",
138
+ '@': './src',
139
139
  },
140
140
  // 'prefer-tsconfig' (default): tsconfig.json paths take priority
141
141
  // 'prefer-alias': resolve.alias takes priority
142
- aliasStrategy: "prefer-alias",
142
+ aliasStrategy: 'prefer-alias',
143
143
  },
144
- });
144
+ })
145
145
  ```
146
146
 
147
147
  - Bump Rsbuild v1.5.4 with Rspack v1.5.2. ([#1644](https://github.com/lynx-family/lynx-stack/pull/1644))
@@ -161,7 +161,7 @@
161
161
  - Add `output.dataUriLimit.*` for fine-grained control of asset inlining. ([#1648](https://github.com/lynx-family/lynx-stack/pull/1648))
162
162
 
163
163
  ```js
164
- import { defineConfig } from "@lynx-js/rspeedy";
164
+ import { defineConfig } from '@lynx-js/rspeedy'
165
165
 
166
166
  export default defineConfig({
167
167
  output: {
@@ -170,7 +170,7 @@
170
170
  media: 0,
171
171
  },
172
172
  },
173
- });
173
+ })
174
174
  ```
175
175
 
176
176
  ## 0.11.0
@@ -290,28 +290,28 @@
290
290
 
291
291
  ```ts
292
292
  type InlineChunkTestFunction = (params: {
293
- size: number;
294
- name: string;
295
- }) => boolean;
293
+ size: number
294
+ name: string
295
+ }) => boolean
296
296
 
297
- type InlineChunkTest = RegExp | InlineChunkTestFunction;
297
+ type InlineChunkTest = RegExp | InlineChunkTestFunction
298
298
 
299
299
  type InlineChunkConfig =
300
300
  | boolean
301
301
  | InlineChunkTest
302
- | { enable?: boolean | "auto"; test: InlineChunkTest };
302
+ | { enable?: boolean | 'auto', test: InlineChunkTest }
303
303
  ```
304
304
 
305
305
  ```ts
306
- import { defineConfig } from "@lynx-js/rspeedy";
306
+ import { defineConfig } from '@lynx-js/rspeedy'
307
307
 
308
308
  export default defineConfig({
309
309
  output: {
310
310
  inlineScripts: ({ name, size }) => {
311
- return name.includes("foo") && size < 1000;
311
+ return name.includes('foo') && size < 1000
312
312
  },
313
313
  },
314
- });
314
+ })
315
315
  ```
316
316
 
317
317
  - docs: remove chunks: 'all' in comments ([#1168](https://github.com/lynx-family/lynx-stack/pull/1168))
@@ -354,13 +354,13 @@
354
354
  example:
355
355
 
356
356
  ```js
357
- import { defineConfig } from "@lynx-js/rspeedy";
357
+ import { defineConfig } from '@lynx-js/rspeedy'
358
358
 
359
359
  export default defineConfig({
360
360
  output: {
361
361
  inlineScripts: false,
362
362
  },
363
- });
363
+ })
364
364
  ```
365
365
 
366
366
  - Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
@@ -380,12 +380,12 @@
380
380
  example:
381
381
 
382
382
  ```js
383
- import { defineConfig } from "@lynx-js/rspeedy";
383
+ import { defineConfig } from '@lynx-js/rspeedy'
384
384
  export default defineConfig({
385
385
  source: {
386
- preEntry: "./src/polyfill.ts",
386
+ preEntry: './src/polyfill.ts',
387
387
  },
388
- });
388
+ })
389
389
  ```
390
390
 
391
391
  - Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
@@ -396,17 +396,17 @@
396
396
 
397
397
  ```js
398
398
  export const myPlugin = {
399
- name: "my-plugin",
399
+ name: 'my-plugin',
400
400
  setup(api) {
401
- const { callerName } = api.context;
401
+ const { callerName } = api.context
402
402
 
403
- if (callerName === "rslib") {
403
+ if (callerName === 'rslib') {
404
404
  // ...
405
- } else if (callerName === "rspeedy") {
405
+ } else if (callerName === 'rspeedy') {
406
406
  // ...
407
407
  }
408
408
  },
409
- };
409
+ }
410
410
  ```
411
411
 
412
412
  - Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
@@ -429,7 +429,7 @@
429
429
  Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
430
430
 
431
431
  ```js
432
- import { defineConfig } from "@lynx-js/rspeedy";
432
+ import { defineConfig } from '@lynx-js/rspeedy'
433
433
 
434
434
  export default defineConfig({
435
435
  tools: {
@@ -439,7 +439,7 @@
439
439
  },
440
440
  },
441
441
  },
442
- });
442
+ })
443
443
  ```
444
444
 
445
445
  See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
@@ -571,12 +571,12 @@
571
571
  example:
572
572
 
573
573
  ```js
574
- import { defineConfig } from "@lynx-js/rspeedy";
574
+ import { defineConfig } from '@lynx-js/rspeedy'
575
575
  export default defineConfig({
576
576
  server: {
577
- base: "/dist",
577
+ base: '/dist',
578
578
  },
579
- });
579
+ })
580
580
  ```
581
581
 
582
582
  - Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
@@ -629,11 +629,11 @@
629
629
  You can switch to other tools by using:
630
630
 
631
631
  ```js
632
- import { defineConfig } from "@lynx-js/rspeedy";
632
+ import { defineConfig } from '@lynx-js/rspeedy'
633
633
  import {
634
634
  CssMinimizerWebpackPlugin,
635
635
  pluginCssMinimizer,
636
- } from "@rsbuild/plugin-css-minimizer";
636
+ } from '@rsbuild/plugin-css-minimizer'
637
637
 
638
638
  export default defineConfig({
639
639
  plugins: [
@@ -646,7 +646,7 @@
646
646
  },
647
647
  }),
648
648
  ],
649
- });
649
+ })
650
650
  ```
651
651
 
652
652
  See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
@@ -656,8 +656,8 @@
656
656
  You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
657
657
 
658
658
  ```js
659
- import { defineConfig } from "@lynx-js/rspeedy";
660
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
659
+ import { defineConfig } from '@lynx-js/rspeedy'
660
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
661
661
 
662
662
  export default defineConfig({
663
663
  plugins: [
@@ -669,7 +669,7 @@
669
669
  },
670
670
  }),
671
671
  ],
672
- });
672
+ })
673
673
  ```
674
674
 
675
675
  ## 0.7.1
@@ -689,7 +689,7 @@
689
689
  You may turn it off using `output.minify.css: false`:
690
690
 
691
691
  ```js
692
- import { defineConfig } from "@lynx-js/rspeedy";
692
+ import { defineConfig } from '@lynx-js/rspeedy'
693
693
 
694
694
  export default defineConfig({
695
695
  output: {
@@ -697,18 +697,18 @@
697
697
  css: false,
698
698
  },
699
699
  },
700
- });
700
+ })
701
701
  ```
702
702
 
703
703
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
704
704
 
705
705
  ```js
706
- import { defineConfig } from "@lynx-js/rspeedy";
707
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
706
+ import { defineConfig } from '@lynx-js/rspeedy'
707
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
708
708
 
709
709
  export default defineConfig({
710
710
  plugins: [pluginCssMinimizer()],
711
- });
711
+ })
712
712
  ```
713
713
 
714
714
  - 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
@@ -735,22 +735,22 @@
735
735
  - The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
736
736
 
737
737
  ```js
738
- import { defineConfig } from "@lynx-js/rspeedy";
738
+ import { defineConfig } from '@lynx-js/rspeedy'
739
739
 
740
740
  export default defineConfig({
741
741
  dev: {
742
742
  watchFiles: [
743
743
  {
744
- type: "reload-server",
745
- paths: ["public/**/*.txt"],
744
+ type: 'reload-server',
745
+ paths: ['public/**/*.txt'],
746
746
  },
747
747
  {
748
- type: "reload-page",
749
- paths: ["public/**/*.json"],
748
+ type: 'reload-page',
749
+ paths: ['public/**/*.json'],
750
750
  },
751
751
  ],
752
752
  },
753
- });
753
+ })
754
754
  ```
755
755
 
756
756
  - 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.0"
66
+ rE: "0.12.1"
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.0"
14
+ rE: "0.12.1"
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.0"
111
+ rE: "0.12.1"
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.1-canary-20251205-6400f87b",
3
+ "version": "0.12.1",
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.0-canary-20251205-6400f87b",
53
+ "@lynx-js/web-rsbuild-server-middleware": "npm:@lynx-js/web-rsbuild-server-middleware-canary@0.19.0",
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.9",