@lynx-js/rspeedy-canary 0.12.2-canary-20251212-12a98f76 → 0.12.2
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,13 +1,13 @@
|
|
|
1
1
|
# @lynx-js/rspeedy
|
|
2
2
|
|
|
3
|
-
## 0.12.2
|
|
3
|
+
## 0.12.2
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Bump Rsbuild v1.6.13 with Rspack v1.6.6. ([#1995](https://github.com/lynx-family/lynx-stack/pull/1995))
|
|
8
8
|
|
|
9
9
|
- Updated dependencies []:
|
|
10
|
-
- @lynx-js/web-rsbuild-server-middleware@0.19.1
|
|
10
|
+
- @lynx-js/web-rsbuild-server-middleware@0.19.1
|
|
11
11
|
|
|
12
12
|
## 0.12.1
|
|
13
13
|
|
|
@@ -105,11 +105,11 @@
|
|
|
105
105
|
- Support `command` and `env` parameters in the function exported by `lynx.config.js`. ([#1669](https://github.com/lynx-family/lynx-stack/pull/1669))
|
|
106
106
|
|
|
107
107
|
```js
|
|
108
|
-
import { defineConfig } from
|
|
108
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
109
109
|
|
|
110
110
|
export default defineConfig(({ command, env }) => {
|
|
111
|
-
const isBuild = command ===
|
|
112
|
-
const isTest = env ===
|
|
111
|
+
const isBuild = command === 'build'
|
|
112
|
+
const isTest = env === 'test'
|
|
113
113
|
|
|
114
114
|
return {
|
|
115
115
|
output: {
|
|
@@ -118,8 +118,8 @@
|
|
|
118
118
|
performance: {
|
|
119
119
|
buildCache: isBuild,
|
|
120
120
|
},
|
|
121
|
-
}
|
|
122
|
-
})
|
|
121
|
+
}
|
|
122
|
+
})
|
|
123
123
|
```
|
|
124
124
|
|
|
125
125
|
- Support `resolve.dedupe`. ([#1671](https://github.com/lynx-family/lynx-stack/pull/1671))
|
|
@@ -127,30 +127,30 @@
|
|
|
127
127
|
This is useful when having multiple duplicated packages in the bundle:
|
|
128
128
|
|
|
129
129
|
```js
|
|
130
|
-
import { defineConfig } from
|
|
130
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
131
131
|
|
|
132
132
|
export default defineConfig({
|
|
133
133
|
resolve: {
|
|
134
|
-
dedupe: [
|
|
134
|
+
dedupe: ['tslib'],
|
|
135
135
|
},
|
|
136
|
-
})
|
|
136
|
+
})
|
|
137
137
|
```
|
|
138
138
|
|
|
139
139
|
- Support `resolve.aliasStrategy` for controlling priority between `tsconfig.json` paths and `resolve.alias` ([#1722](https://github.com/lynx-family/lynx-stack/pull/1722))
|
|
140
140
|
|
|
141
141
|
```js
|
|
142
|
-
import { defineConfig } from
|
|
142
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
143
143
|
|
|
144
144
|
export default defineConfig({
|
|
145
145
|
resolve: {
|
|
146
146
|
alias: {
|
|
147
|
-
|
|
147
|
+
'@': './src',
|
|
148
148
|
},
|
|
149
149
|
// 'prefer-tsconfig' (default): tsconfig.json paths take priority
|
|
150
150
|
// 'prefer-alias': resolve.alias takes priority
|
|
151
|
-
aliasStrategy:
|
|
151
|
+
aliasStrategy: 'prefer-alias',
|
|
152
152
|
},
|
|
153
|
-
})
|
|
153
|
+
})
|
|
154
154
|
```
|
|
155
155
|
|
|
156
156
|
- Bump Rsbuild v1.5.4 with Rspack v1.5.2. ([#1644](https://github.com/lynx-family/lynx-stack/pull/1644))
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
- Add `output.dataUriLimit.*` for fine-grained control of asset inlining. ([#1648](https://github.com/lynx-family/lynx-stack/pull/1648))
|
|
171
171
|
|
|
172
172
|
```js
|
|
173
|
-
import { defineConfig } from
|
|
173
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
174
174
|
|
|
175
175
|
export default defineConfig({
|
|
176
176
|
output: {
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
media: 0,
|
|
180
180
|
},
|
|
181
181
|
},
|
|
182
|
-
})
|
|
182
|
+
})
|
|
183
183
|
```
|
|
184
184
|
|
|
185
185
|
## 0.11.0
|
|
@@ -299,28 +299,28 @@
|
|
|
299
299
|
|
|
300
300
|
```ts
|
|
301
301
|
type InlineChunkTestFunction = (params: {
|
|
302
|
-
size: number
|
|
303
|
-
name: string
|
|
304
|
-
}) => boolean
|
|
302
|
+
size: number
|
|
303
|
+
name: string
|
|
304
|
+
}) => boolean
|
|
305
305
|
|
|
306
|
-
type InlineChunkTest = RegExp | InlineChunkTestFunction
|
|
306
|
+
type InlineChunkTest = RegExp | InlineChunkTestFunction
|
|
307
307
|
|
|
308
308
|
type InlineChunkConfig =
|
|
309
309
|
| boolean
|
|
310
310
|
| InlineChunkTest
|
|
311
|
-
| { enable?: boolean |
|
|
311
|
+
| { enable?: boolean | 'auto', test: InlineChunkTest }
|
|
312
312
|
```
|
|
313
313
|
|
|
314
314
|
```ts
|
|
315
|
-
import { defineConfig } from
|
|
315
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
316
316
|
|
|
317
317
|
export default defineConfig({
|
|
318
318
|
output: {
|
|
319
319
|
inlineScripts: ({ name, size }) => {
|
|
320
|
-
return name.includes(
|
|
320
|
+
return name.includes('foo') && size < 1000
|
|
321
321
|
},
|
|
322
322
|
},
|
|
323
|
-
})
|
|
323
|
+
})
|
|
324
324
|
```
|
|
325
325
|
|
|
326
326
|
- docs: remove chunks: 'all' in comments ([#1168](https://github.com/lynx-family/lynx-stack/pull/1168))
|
|
@@ -363,13 +363,13 @@
|
|
|
363
363
|
example:
|
|
364
364
|
|
|
365
365
|
```js
|
|
366
|
-
import { defineConfig } from
|
|
366
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
367
367
|
|
|
368
368
|
export default defineConfig({
|
|
369
369
|
output: {
|
|
370
370
|
inlineScripts: false,
|
|
371
371
|
},
|
|
372
|
-
})
|
|
372
|
+
})
|
|
373
373
|
```
|
|
374
374
|
|
|
375
375
|
- Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
|
|
@@ -389,12 +389,12 @@
|
|
|
389
389
|
example:
|
|
390
390
|
|
|
391
391
|
```js
|
|
392
|
-
import { defineConfig } from
|
|
392
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
393
393
|
export default defineConfig({
|
|
394
394
|
source: {
|
|
395
|
-
preEntry:
|
|
395
|
+
preEntry: './src/polyfill.ts',
|
|
396
396
|
},
|
|
397
|
-
})
|
|
397
|
+
})
|
|
398
398
|
```
|
|
399
399
|
|
|
400
400
|
- Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
|
|
@@ -405,17 +405,17 @@
|
|
|
405
405
|
|
|
406
406
|
```js
|
|
407
407
|
export const myPlugin = {
|
|
408
|
-
name:
|
|
408
|
+
name: 'my-plugin',
|
|
409
409
|
setup(api) {
|
|
410
|
-
const { callerName } = api.context
|
|
410
|
+
const { callerName } = api.context
|
|
411
411
|
|
|
412
|
-
if (callerName ===
|
|
412
|
+
if (callerName === 'rslib') {
|
|
413
413
|
// ...
|
|
414
|
-
} else if (callerName ===
|
|
414
|
+
} else if (callerName === 'rspeedy') {
|
|
415
415
|
// ...
|
|
416
416
|
}
|
|
417
417
|
},
|
|
418
|
-
}
|
|
418
|
+
}
|
|
419
419
|
```
|
|
420
420
|
|
|
421
421
|
- Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
|
|
@@ -438,7 +438,7 @@
|
|
|
438
438
|
Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
|
|
439
439
|
|
|
440
440
|
```js
|
|
441
|
-
import { defineConfig } from
|
|
441
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
442
442
|
|
|
443
443
|
export default defineConfig({
|
|
444
444
|
tools: {
|
|
@@ -448,7 +448,7 @@
|
|
|
448
448
|
},
|
|
449
449
|
},
|
|
450
450
|
},
|
|
451
|
-
})
|
|
451
|
+
})
|
|
452
452
|
```
|
|
453
453
|
|
|
454
454
|
See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
|
|
@@ -580,12 +580,12 @@
|
|
|
580
580
|
example:
|
|
581
581
|
|
|
582
582
|
```js
|
|
583
|
-
import { defineConfig } from
|
|
583
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
584
584
|
export default defineConfig({
|
|
585
585
|
server: {
|
|
586
|
-
base:
|
|
586
|
+
base: '/dist',
|
|
587
587
|
},
|
|
588
|
-
})
|
|
588
|
+
})
|
|
589
589
|
```
|
|
590
590
|
|
|
591
591
|
- Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
|
|
@@ -638,11 +638,11 @@
|
|
|
638
638
|
You can switch to other tools by using:
|
|
639
639
|
|
|
640
640
|
```js
|
|
641
|
-
import { defineConfig } from
|
|
641
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
642
642
|
import {
|
|
643
643
|
CssMinimizerWebpackPlugin,
|
|
644
644
|
pluginCssMinimizer,
|
|
645
|
-
} from
|
|
645
|
+
} from '@rsbuild/plugin-css-minimizer'
|
|
646
646
|
|
|
647
647
|
export default defineConfig({
|
|
648
648
|
plugins: [
|
|
@@ -655,7 +655,7 @@
|
|
|
655
655
|
},
|
|
656
656
|
}),
|
|
657
657
|
],
|
|
658
|
-
})
|
|
658
|
+
})
|
|
659
659
|
```
|
|
660
660
|
|
|
661
661
|
See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
|
|
@@ -665,8 +665,8 @@
|
|
|
665
665
|
You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-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: [
|
|
@@ -678,7 +678,7 @@
|
|
|
678
678
|
},
|
|
679
679
|
}),
|
|
680
680
|
],
|
|
681
|
-
})
|
|
681
|
+
})
|
|
682
682
|
```
|
|
683
683
|
|
|
684
684
|
## 0.7.1
|
|
@@ -698,7 +698,7 @@
|
|
|
698
698
|
You may turn it off using `output.minify.css: false`:
|
|
699
699
|
|
|
700
700
|
```js
|
|
701
|
-
import { defineConfig } from
|
|
701
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
702
702
|
|
|
703
703
|
export default defineConfig({
|
|
704
704
|
output: {
|
|
@@ -706,18 +706,18 @@
|
|
|
706
706
|
css: false,
|
|
707
707
|
},
|
|
708
708
|
},
|
|
709
|
-
})
|
|
709
|
+
})
|
|
710
710
|
```
|
|
711
711
|
|
|
712
712
|
Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
|
|
713
713
|
|
|
714
714
|
```js
|
|
715
|
-
import { defineConfig } from
|
|
716
|
-
import { pluginCssMinimizer } from
|
|
715
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
716
|
+
import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
|
|
717
717
|
|
|
718
718
|
export default defineConfig({
|
|
719
719
|
plugins: [pluginCssMinimizer()],
|
|
720
|
-
})
|
|
720
|
+
})
|
|
721
721
|
```
|
|
722
722
|
|
|
723
723
|
- 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
|
|
@@ -744,22 +744,22 @@
|
|
|
744
744
|
- The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
|
|
745
745
|
|
|
746
746
|
```js
|
|
747
|
-
import { defineConfig } from
|
|
747
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
748
748
|
|
|
749
749
|
export default defineConfig({
|
|
750
750
|
dev: {
|
|
751
751
|
watchFiles: [
|
|
752
752
|
{
|
|
753
|
-
type:
|
|
754
|
-
paths: [
|
|
753
|
+
type: 'reload-server',
|
|
754
|
+
paths: ['public/**/*.txt'],
|
|
755
755
|
},
|
|
756
756
|
{
|
|
757
|
-
type:
|
|
758
|
-
paths: [
|
|
757
|
+
type: 'reload-page',
|
|
758
|
+
paths: ['public/**/*.json'],
|
|
759
759
|
},
|
|
760
760
|
],
|
|
761
761
|
},
|
|
762
|
-
})
|
|
762
|
+
})
|
|
763
763
|
```
|
|
764
764
|
|
|
765
765
|
- 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.
|
|
66
|
+
rE: "0.12.2"
|
|
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.12.
|
|
14
|
+
rE: "0.12.2"
|
|
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.
|
|
111
|
+
rE: "0.12.2"
|
|
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.2
|
|
3
|
+
"version": "0.12.2",
|
|
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.1
|
|
53
|
+
"@lynx-js/web-rsbuild-server-middleware": "npm:@lynx-js/web-rsbuild-server-middleware-canary@0.19.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.6.13",
|