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