@lynx-js/rspeedy-canary 0.11.9-canary-20251108-3bc8903d → 0.11.9

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.11.9-canary-20251108032102-3bc8903d11407beb7bcc465e673ef554540d4309
3
+ ## 0.11.9
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Updated dependencies []:
8
- - @lynx-js/web-rsbuild-server-middleware@0.18.3-canary-20251108032102-3bc8903d11407beb7bcc465e673ef554540d4309
8
+ - @lynx-js/web-rsbuild-server-middleware@0.18.3
9
9
 
10
10
  ## 0.11.8
11
11
 
@@ -76,11 +76,11 @@
76
76
  - Support `command` and `env` parameters in the function exported by `lynx.config.js`. ([#1669](https://github.com/lynx-family/lynx-stack/pull/1669))
77
77
 
78
78
  ```js
79
- import { defineConfig } from "@lynx-js/rspeedy";
79
+ import { defineConfig } from '@lynx-js/rspeedy'
80
80
 
81
81
  export default defineConfig(({ command, env }) => {
82
- const isBuild = command === "build";
83
- const isTest = env === "test";
82
+ const isBuild = command === 'build'
83
+ const isTest = env === 'test'
84
84
 
85
85
  return {
86
86
  output: {
@@ -89,8 +89,8 @@
89
89
  performance: {
90
90
  buildCache: isBuild,
91
91
  },
92
- };
93
- });
92
+ }
93
+ })
94
94
  ```
95
95
 
96
96
  - Support `resolve.dedupe`. ([#1671](https://github.com/lynx-family/lynx-stack/pull/1671))
@@ -98,30 +98,30 @@
98
98
  This is useful when having multiple duplicated packages in the bundle:
99
99
 
100
100
  ```js
101
- import { defineConfig } from "@lynx-js/rspeedy";
101
+ import { defineConfig } from '@lynx-js/rspeedy'
102
102
 
103
103
  export default defineConfig({
104
104
  resolve: {
105
- dedupe: ["tslib"],
105
+ dedupe: ['tslib'],
106
106
  },
107
- });
107
+ })
108
108
  ```
109
109
 
110
110
  - Support `resolve.aliasStrategy` for controlling priority between `tsconfig.json` paths and `resolve.alias` ([#1722](https://github.com/lynx-family/lynx-stack/pull/1722))
111
111
 
112
112
  ```js
113
- import { defineConfig } from "@lynx-js/rspeedy";
113
+ import { defineConfig } from '@lynx-js/rspeedy'
114
114
 
115
115
  export default defineConfig({
116
116
  resolve: {
117
117
  alias: {
118
- "@": "./src",
118
+ '@': './src',
119
119
  },
120
120
  // 'prefer-tsconfig' (default): tsconfig.json paths take priority
121
121
  // 'prefer-alias': resolve.alias takes priority
122
- aliasStrategy: "prefer-alias",
122
+ aliasStrategy: 'prefer-alias',
123
123
  },
124
- });
124
+ })
125
125
  ```
126
126
 
127
127
  - Bump Rsbuild v1.5.4 with Rspack v1.5.2. ([#1644](https://github.com/lynx-family/lynx-stack/pull/1644))
@@ -141,7 +141,7 @@
141
141
  - Add `output.dataUriLimit.*` for fine-grained control of asset inlining. ([#1648](https://github.com/lynx-family/lynx-stack/pull/1648))
142
142
 
143
143
  ```js
144
- import { defineConfig } from "@lynx-js/rspeedy";
144
+ import { defineConfig } from '@lynx-js/rspeedy'
145
145
 
146
146
  export default defineConfig({
147
147
  output: {
@@ -150,7 +150,7 @@
150
150
  media: 0,
151
151
  },
152
152
  },
153
- });
153
+ })
154
154
  ```
155
155
 
156
156
  ## 0.11.0
@@ -270,28 +270,28 @@
270
270
 
271
271
  ```ts
272
272
  type InlineChunkTestFunction = (params: {
273
- size: number;
274
- name: string;
275
- }) => boolean;
273
+ size: number
274
+ name: string
275
+ }) => boolean
276
276
 
277
- type InlineChunkTest = RegExp | InlineChunkTestFunction;
277
+ type InlineChunkTest = RegExp | InlineChunkTestFunction
278
278
 
279
279
  type InlineChunkConfig =
280
280
  | boolean
281
281
  | InlineChunkTest
282
- | { enable?: boolean | "auto"; test: InlineChunkTest };
282
+ | { enable?: boolean | 'auto', test: InlineChunkTest }
283
283
  ```
284
284
 
285
285
  ```ts
286
- import { defineConfig } from "@lynx-js/rspeedy";
286
+ import { defineConfig } from '@lynx-js/rspeedy'
287
287
 
288
288
  export default defineConfig({
289
289
  output: {
290
290
  inlineScripts: ({ name, size }) => {
291
- return name.includes("foo") && size < 1000;
291
+ return name.includes('foo') && size < 1000
292
292
  },
293
293
  },
294
- });
294
+ })
295
295
  ```
296
296
 
297
297
  - docs: remove chunks: 'all' in comments ([#1168](https://github.com/lynx-family/lynx-stack/pull/1168))
@@ -334,13 +334,13 @@
334
334
  example:
335
335
 
336
336
  ```js
337
- import { defineConfig } from "@lynx-js/rspeedy";
337
+ import { defineConfig } from '@lynx-js/rspeedy'
338
338
 
339
339
  export default defineConfig({
340
340
  output: {
341
341
  inlineScripts: false,
342
342
  },
343
- });
343
+ })
344
344
  ```
345
345
 
346
346
  - Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
@@ -360,12 +360,12 @@
360
360
  example:
361
361
 
362
362
  ```js
363
- import { defineConfig } from "@lynx-js/rspeedy";
363
+ import { defineConfig } from '@lynx-js/rspeedy'
364
364
  export default defineConfig({
365
365
  source: {
366
- preEntry: "./src/polyfill.ts",
366
+ preEntry: './src/polyfill.ts',
367
367
  },
368
- });
368
+ })
369
369
  ```
370
370
 
371
371
  - Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
@@ -376,17 +376,17 @@
376
376
 
377
377
  ```js
378
378
  export const myPlugin = {
379
- name: "my-plugin",
379
+ name: 'my-plugin',
380
380
  setup(api) {
381
- const { callerName } = api.context;
381
+ const { callerName } = api.context
382
382
 
383
- if (callerName === "rslib") {
383
+ if (callerName === 'rslib') {
384
384
  // ...
385
- } else if (callerName === "rspeedy") {
385
+ } else if (callerName === 'rspeedy') {
386
386
  // ...
387
387
  }
388
388
  },
389
- };
389
+ }
390
390
  ```
391
391
 
392
392
  - Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
@@ -409,7 +409,7 @@
409
409
  Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
410
410
 
411
411
  ```js
412
- import { defineConfig } from "@lynx-js/rspeedy";
412
+ import { defineConfig } from '@lynx-js/rspeedy'
413
413
 
414
414
  export default defineConfig({
415
415
  tools: {
@@ -419,7 +419,7 @@
419
419
  },
420
420
  },
421
421
  },
422
- });
422
+ })
423
423
  ```
424
424
 
425
425
  See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
@@ -551,12 +551,12 @@
551
551
  example:
552
552
 
553
553
  ```js
554
- import { defineConfig } from "@lynx-js/rspeedy";
554
+ import { defineConfig } from '@lynx-js/rspeedy'
555
555
  export default defineConfig({
556
556
  server: {
557
- base: "/dist",
557
+ base: '/dist',
558
558
  },
559
- });
559
+ })
560
560
  ```
561
561
 
562
562
  - Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
@@ -609,11 +609,11 @@
609
609
  You can switch to other tools by using:
610
610
 
611
611
  ```js
612
- import { defineConfig } from "@lynx-js/rspeedy";
612
+ import { defineConfig } from '@lynx-js/rspeedy'
613
613
  import {
614
614
  CssMinimizerWebpackPlugin,
615
615
  pluginCssMinimizer,
616
- } from "@rsbuild/plugin-css-minimizer";
616
+ } from '@rsbuild/plugin-css-minimizer'
617
617
 
618
618
  export default defineConfig({
619
619
  plugins: [
@@ -626,7 +626,7 @@
626
626
  },
627
627
  }),
628
628
  ],
629
- });
629
+ })
630
630
  ```
631
631
 
632
632
  See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
@@ -636,8 +636,8 @@
636
636
  You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
637
637
 
638
638
  ```js
639
- import { defineConfig } from "@lynx-js/rspeedy";
640
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
639
+ import { defineConfig } from '@lynx-js/rspeedy'
640
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
641
641
 
642
642
  export default defineConfig({
643
643
  plugins: [
@@ -649,7 +649,7 @@
649
649
  },
650
650
  }),
651
651
  ],
652
- });
652
+ })
653
653
  ```
654
654
 
655
655
  ## 0.7.1
@@ -669,7 +669,7 @@
669
669
  You may turn it off using `output.minify.css: false`:
670
670
 
671
671
  ```js
672
- import { defineConfig } from "@lynx-js/rspeedy";
672
+ import { defineConfig } from '@lynx-js/rspeedy'
673
673
 
674
674
  export default defineConfig({
675
675
  output: {
@@ -677,18 +677,18 @@
677
677
  css: false,
678
678
  },
679
679
  },
680
- });
680
+ })
681
681
  ```
682
682
 
683
683
  Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
684
684
 
685
685
  ```js
686
- import { defineConfig } from "@lynx-js/rspeedy";
687
- import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
686
+ import { defineConfig } from '@lynx-js/rspeedy'
687
+ import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
688
688
 
689
689
  export default defineConfig({
690
690
  plugins: [pluginCssMinimizer()],
691
- });
691
+ })
692
692
  ```
693
693
 
694
694
  - 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
@@ -715,22 +715,22 @@
715
715
  - The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
716
716
 
717
717
  ```js
718
- import { defineConfig } from "@lynx-js/rspeedy";
718
+ import { defineConfig } from '@lynx-js/rspeedy'
719
719
 
720
720
  export default defineConfig({
721
721
  dev: {
722
722
  watchFiles: [
723
723
  {
724
- type: "reload-server",
725
- paths: ["public/**/*.txt"],
724
+ type: 'reload-server',
725
+ paths: ['public/**/*.txt'],
726
726
  },
727
727
  {
728
- type: "reload-page",
729
- paths: ["public/**/*.json"],
728
+ type: 'reload-page',
729
+ paths: ['public/**/*.json'],
730
730
  },
731
731
  ],
732
732
  },
733
- });
733
+ })
734
734
  ```
735
735
 
736
736
  - 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.8"
66
+ rE: "0.11.9"
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.8"
14
+ rE: "0.11.9"
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.8"
111
+ rE: "0.11.9"
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.9-canary-20251108-3bc8903d",
3
+ "version": "0.11.9",
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.3-canary-20251108-3bc8903d",
53
+ "@lynx-js/web-rsbuild-server-middleware": "npm:@lynx-js/web-rsbuild-server-middleware-canary@0.18.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.5.17",