@lynx-js/rspeedy-canary 0.11.7-canary-20251023-9fb4623f → 0.11.7
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 +56 -56
- 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.7
|
|
3
|
+
## 0.11.7
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
- support web preview in rspeedy dev (experimental)
|
|
12
12
|
|
|
13
13
|
- Updated dependencies []:
|
|
14
|
-
- @lynx-js/web-rsbuild-server-middleware@0.18.1
|
|
14
|
+
- @lynx-js/web-rsbuild-server-middleware@0.18.1
|
|
15
15
|
|
|
16
16
|
## 0.11.6
|
|
17
17
|
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
- Support `command` and `env` parameters in the function exported by `lynx.config.js`. ([#1669](https://github.com/lynx-family/lynx-stack/pull/1669))
|
|
59
59
|
|
|
60
60
|
```js
|
|
61
|
-
import { defineConfig } from
|
|
61
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
62
62
|
|
|
63
63
|
export default defineConfig(({ command, env }) => {
|
|
64
|
-
const isBuild = command ===
|
|
65
|
-
const isTest = env ===
|
|
64
|
+
const isBuild = command === 'build'
|
|
65
|
+
const isTest = env === 'test'
|
|
66
66
|
|
|
67
67
|
return {
|
|
68
68
|
output: {
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
performance: {
|
|
72
72
|
buildCache: isBuild,
|
|
73
73
|
},
|
|
74
|
-
}
|
|
75
|
-
})
|
|
74
|
+
}
|
|
75
|
+
})
|
|
76
76
|
```
|
|
77
77
|
|
|
78
78
|
- Support `resolve.dedupe`. ([#1671](https://github.com/lynx-family/lynx-stack/pull/1671))
|
|
@@ -80,30 +80,30 @@
|
|
|
80
80
|
This is useful when having multiple duplicated packages in the bundle:
|
|
81
81
|
|
|
82
82
|
```js
|
|
83
|
-
import { defineConfig } from
|
|
83
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
84
84
|
|
|
85
85
|
export default defineConfig({
|
|
86
86
|
resolve: {
|
|
87
|
-
dedupe: [
|
|
87
|
+
dedupe: ['tslib'],
|
|
88
88
|
},
|
|
89
|
-
})
|
|
89
|
+
})
|
|
90
90
|
```
|
|
91
91
|
|
|
92
92
|
- Support `resolve.aliasStrategy` for controlling priority between `tsconfig.json` paths and `resolve.alias` ([#1722](https://github.com/lynx-family/lynx-stack/pull/1722))
|
|
93
93
|
|
|
94
94
|
```js
|
|
95
|
-
import { defineConfig } from
|
|
95
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
96
96
|
|
|
97
97
|
export default defineConfig({
|
|
98
98
|
resolve: {
|
|
99
99
|
alias: {
|
|
100
|
-
|
|
100
|
+
'@': './src',
|
|
101
101
|
},
|
|
102
102
|
// 'prefer-tsconfig' (default): tsconfig.json paths take priority
|
|
103
103
|
// 'prefer-alias': resolve.alias takes priority
|
|
104
|
-
aliasStrategy:
|
|
104
|
+
aliasStrategy: 'prefer-alias',
|
|
105
105
|
},
|
|
106
|
-
})
|
|
106
|
+
})
|
|
107
107
|
```
|
|
108
108
|
|
|
109
109
|
- Bump Rsbuild v1.5.4 with Rspack v1.5.2. ([#1644](https://github.com/lynx-family/lynx-stack/pull/1644))
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
- Add `output.dataUriLimit.*` for fine-grained control of asset inlining. ([#1648](https://github.com/lynx-family/lynx-stack/pull/1648))
|
|
124
124
|
|
|
125
125
|
```js
|
|
126
|
-
import { defineConfig } from
|
|
126
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
127
127
|
|
|
128
128
|
export default defineConfig({
|
|
129
129
|
output: {
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
media: 0,
|
|
133
133
|
},
|
|
134
134
|
},
|
|
135
|
-
})
|
|
135
|
+
})
|
|
136
136
|
```
|
|
137
137
|
|
|
138
138
|
## 0.11.0
|
|
@@ -252,28 +252,28 @@
|
|
|
252
252
|
|
|
253
253
|
```ts
|
|
254
254
|
type InlineChunkTestFunction = (params: {
|
|
255
|
-
size: number
|
|
256
|
-
name: string
|
|
257
|
-
}) => boolean
|
|
255
|
+
size: number
|
|
256
|
+
name: string
|
|
257
|
+
}) => boolean
|
|
258
258
|
|
|
259
|
-
type InlineChunkTest = RegExp | InlineChunkTestFunction
|
|
259
|
+
type InlineChunkTest = RegExp | InlineChunkTestFunction
|
|
260
260
|
|
|
261
261
|
type InlineChunkConfig =
|
|
262
262
|
| boolean
|
|
263
263
|
| InlineChunkTest
|
|
264
|
-
| { enable?: boolean |
|
|
264
|
+
| { enable?: boolean | 'auto', test: InlineChunkTest }
|
|
265
265
|
```
|
|
266
266
|
|
|
267
267
|
```ts
|
|
268
|
-
import { defineConfig } from
|
|
268
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
269
269
|
|
|
270
270
|
export default defineConfig({
|
|
271
271
|
output: {
|
|
272
272
|
inlineScripts: ({ name, size }) => {
|
|
273
|
-
return name.includes(
|
|
273
|
+
return name.includes('foo') && size < 1000
|
|
274
274
|
},
|
|
275
275
|
},
|
|
276
|
-
})
|
|
276
|
+
})
|
|
277
277
|
```
|
|
278
278
|
|
|
279
279
|
- docs: remove chunks: 'all' in comments ([#1168](https://github.com/lynx-family/lynx-stack/pull/1168))
|
|
@@ -316,13 +316,13 @@
|
|
|
316
316
|
example:
|
|
317
317
|
|
|
318
318
|
```js
|
|
319
|
-
import { defineConfig } from
|
|
319
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
320
320
|
|
|
321
321
|
export default defineConfig({
|
|
322
322
|
output: {
|
|
323
323
|
inlineScripts: false,
|
|
324
324
|
},
|
|
325
|
-
})
|
|
325
|
+
})
|
|
326
326
|
```
|
|
327
327
|
|
|
328
328
|
- Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
|
|
@@ -342,12 +342,12 @@
|
|
|
342
342
|
example:
|
|
343
343
|
|
|
344
344
|
```js
|
|
345
|
-
import { defineConfig } from
|
|
345
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
346
346
|
export default defineConfig({
|
|
347
347
|
source: {
|
|
348
|
-
preEntry:
|
|
348
|
+
preEntry: './src/polyfill.ts',
|
|
349
349
|
},
|
|
350
|
-
})
|
|
350
|
+
})
|
|
351
351
|
```
|
|
352
352
|
|
|
353
353
|
- Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
|
|
@@ -358,17 +358,17 @@
|
|
|
358
358
|
|
|
359
359
|
```js
|
|
360
360
|
export const myPlugin = {
|
|
361
|
-
name:
|
|
361
|
+
name: 'my-plugin',
|
|
362
362
|
setup(api) {
|
|
363
|
-
const { callerName } = api.context
|
|
363
|
+
const { callerName } = api.context
|
|
364
364
|
|
|
365
|
-
if (callerName ===
|
|
365
|
+
if (callerName === 'rslib') {
|
|
366
366
|
// ...
|
|
367
|
-
} else if (callerName ===
|
|
367
|
+
} else if (callerName === 'rspeedy') {
|
|
368
368
|
// ...
|
|
369
369
|
}
|
|
370
370
|
},
|
|
371
|
-
}
|
|
371
|
+
}
|
|
372
372
|
```
|
|
373
373
|
|
|
374
374
|
- Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
|
|
@@ -391,7 +391,7 @@
|
|
|
391
391
|
Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
|
|
392
392
|
|
|
393
393
|
```js
|
|
394
|
-
import { defineConfig } from
|
|
394
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
395
395
|
|
|
396
396
|
export default defineConfig({
|
|
397
397
|
tools: {
|
|
@@ -401,7 +401,7 @@
|
|
|
401
401
|
},
|
|
402
402
|
},
|
|
403
403
|
},
|
|
404
|
-
})
|
|
404
|
+
})
|
|
405
405
|
```
|
|
406
406
|
|
|
407
407
|
See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
|
|
@@ -533,12 +533,12 @@
|
|
|
533
533
|
example:
|
|
534
534
|
|
|
535
535
|
```js
|
|
536
|
-
import { defineConfig } from
|
|
536
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
537
537
|
export default defineConfig({
|
|
538
538
|
server: {
|
|
539
|
-
base:
|
|
539
|
+
base: '/dist',
|
|
540
540
|
},
|
|
541
|
-
})
|
|
541
|
+
})
|
|
542
542
|
```
|
|
543
543
|
|
|
544
544
|
- Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
|
|
@@ -591,11 +591,11 @@
|
|
|
591
591
|
You can switch to other tools by using:
|
|
592
592
|
|
|
593
593
|
```js
|
|
594
|
-
import { defineConfig } from
|
|
594
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
595
595
|
import {
|
|
596
596
|
CssMinimizerWebpackPlugin,
|
|
597
597
|
pluginCssMinimizer,
|
|
598
|
-
} from
|
|
598
|
+
} from '@rsbuild/plugin-css-minimizer'
|
|
599
599
|
|
|
600
600
|
export default defineConfig({
|
|
601
601
|
plugins: [
|
|
@@ -608,7 +608,7 @@
|
|
|
608
608
|
},
|
|
609
609
|
}),
|
|
610
610
|
],
|
|
611
|
-
})
|
|
611
|
+
})
|
|
612
612
|
```
|
|
613
613
|
|
|
614
614
|
See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
|
|
@@ -618,8 +618,8 @@
|
|
|
618
618
|
You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
|
|
619
619
|
|
|
620
620
|
```js
|
|
621
|
-
import { defineConfig } from
|
|
622
|
-
import { pluginCssMinimizer } from
|
|
621
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
622
|
+
import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
|
|
623
623
|
|
|
624
624
|
export default defineConfig({
|
|
625
625
|
plugins: [
|
|
@@ -631,7 +631,7 @@
|
|
|
631
631
|
},
|
|
632
632
|
}),
|
|
633
633
|
],
|
|
634
|
-
})
|
|
634
|
+
})
|
|
635
635
|
```
|
|
636
636
|
|
|
637
637
|
## 0.7.1
|
|
@@ -651,7 +651,7 @@
|
|
|
651
651
|
You may turn it off using `output.minify.css: false`:
|
|
652
652
|
|
|
653
653
|
```js
|
|
654
|
-
import { defineConfig } from
|
|
654
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
655
655
|
|
|
656
656
|
export default defineConfig({
|
|
657
657
|
output: {
|
|
@@ -659,18 +659,18 @@
|
|
|
659
659
|
css: false,
|
|
660
660
|
},
|
|
661
661
|
},
|
|
662
|
-
})
|
|
662
|
+
})
|
|
663
663
|
```
|
|
664
664
|
|
|
665
665
|
Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
|
|
666
666
|
|
|
667
667
|
```js
|
|
668
|
-
import { defineConfig } from
|
|
669
|
-
import { pluginCssMinimizer } from
|
|
668
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
669
|
+
import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
|
|
670
670
|
|
|
671
671
|
export default defineConfig({
|
|
672
672
|
plugins: [pluginCssMinimizer()],
|
|
673
|
-
})
|
|
673
|
+
})
|
|
674
674
|
```
|
|
675
675
|
|
|
676
676
|
- 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
|
|
@@ -697,22 +697,22 @@
|
|
|
697
697
|
- The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
|
|
698
698
|
|
|
699
699
|
```js
|
|
700
|
-
import { defineConfig } from
|
|
700
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
701
701
|
|
|
702
702
|
export default defineConfig({
|
|
703
703
|
dev: {
|
|
704
704
|
watchFiles: [
|
|
705
705
|
{
|
|
706
|
-
type:
|
|
707
|
-
paths: [
|
|
706
|
+
type: 'reload-server',
|
|
707
|
+
paths: ['public/**/*.txt'],
|
|
708
708
|
},
|
|
709
709
|
{
|
|
710
|
-
type:
|
|
711
|
-
paths: [
|
|
710
|
+
type: 'reload-page',
|
|
711
|
+
paths: ['public/**/*.json'],
|
|
712
712
|
},
|
|
713
713
|
],
|
|
714
714
|
},
|
|
715
|
-
})
|
|
715
|
+
})
|
|
716
716
|
```
|
|
717
717
|
|
|
718
718
|
- 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.7"
|
|
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.7"
|
|
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.7"
|
|
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.7
|
|
3
|
+
"version": "0.11.7",
|
|
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.1
|
|
53
|
+
"@lynx-js/web-rsbuild-server-middleware": "npm:@lynx-js/web-rsbuild-server-middleware-canary@0.18.1",
|
|
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",
|