@lynx-js/rspeedy-canary 0.10.3 → 0.10.4-canary-20250801-4c20781e
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 +46 -40
- package/dist/src_config_validate_ts.js +59 -27
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @lynx-js/rspeedy
|
|
2
2
|
|
|
3
|
+
## 0.10.4-canary-20250801070704-4c20781e75ec5afbce5cd2c838171b8bff48dcb9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Bump Rsbuild v1.4.12 with Rspack v1.4.11. ([#1326](https://github.com/lynx-family/lynx-stack/pull/1326))
|
|
8
|
+
|
|
3
9
|
## 0.10.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -43,28 +49,28 @@
|
|
|
43
49
|
|
|
44
50
|
```ts
|
|
45
51
|
type InlineChunkTestFunction = (params: {
|
|
46
|
-
size: number
|
|
47
|
-
name: string
|
|
48
|
-
}) => boolean
|
|
52
|
+
size: number;
|
|
53
|
+
name: string;
|
|
54
|
+
}) => boolean;
|
|
49
55
|
|
|
50
|
-
type InlineChunkTest = RegExp | InlineChunkTestFunction
|
|
56
|
+
type InlineChunkTest = RegExp | InlineChunkTestFunction;
|
|
51
57
|
|
|
52
58
|
type InlineChunkConfig =
|
|
53
59
|
| boolean
|
|
54
60
|
| InlineChunkTest
|
|
55
|
-
| { enable?: boolean |
|
|
61
|
+
| { enable?: boolean | "auto"; test: InlineChunkTest };
|
|
56
62
|
```
|
|
57
63
|
|
|
58
64
|
```ts
|
|
59
|
-
import { defineConfig } from
|
|
65
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
60
66
|
|
|
61
67
|
export default defineConfig({
|
|
62
68
|
output: {
|
|
63
69
|
inlineScripts: ({ name, size }) => {
|
|
64
|
-
return name.includes(
|
|
70
|
+
return name.includes("foo") && size < 1000;
|
|
65
71
|
},
|
|
66
72
|
},
|
|
67
|
-
})
|
|
73
|
+
});
|
|
68
74
|
```
|
|
69
75
|
|
|
70
76
|
- docs: remove chunks: 'all' in comments ([#1168](https://github.com/lynx-family/lynx-stack/pull/1168))
|
|
@@ -107,13 +113,13 @@
|
|
|
107
113
|
example:
|
|
108
114
|
|
|
109
115
|
```js
|
|
110
|
-
import { defineConfig } from
|
|
116
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
111
117
|
|
|
112
118
|
export default defineConfig({
|
|
113
119
|
output: {
|
|
114
120
|
inlineScripts: false,
|
|
115
121
|
},
|
|
116
|
-
})
|
|
122
|
+
});
|
|
117
123
|
```
|
|
118
124
|
|
|
119
125
|
- Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
|
|
@@ -133,12 +139,12 @@
|
|
|
133
139
|
example:
|
|
134
140
|
|
|
135
141
|
```js
|
|
136
|
-
import { defineConfig } from
|
|
142
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
137
143
|
export default defineConfig({
|
|
138
144
|
source: {
|
|
139
|
-
preEntry:
|
|
145
|
+
preEntry: "./src/polyfill.ts",
|
|
140
146
|
},
|
|
141
|
-
})
|
|
147
|
+
});
|
|
142
148
|
```
|
|
143
149
|
|
|
144
150
|
- Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
|
|
@@ -149,17 +155,17 @@
|
|
|
149
155
|
|
|
150
156
|
```js
|
|
151
157
|
export const myPlugin = {
|
|
152
|
-
name:
|
|
158
|
+
name: "my-plugin",
|
|
153
159
|
setup(api) {
|
|
154
|
-
const { callerName } = api.context
|
|
160
|
+
const { callerName } = api.context;
|
|
155
161
|
|
|
156
|
-
if (callerName ===
|
|
162
|
+
if (callerName === "rslib") {
|
|
157
163
|
// ...
|
|
158
|
-
} else if (callerName ===
|
|
164
|
+
} else if (callerName === "rspeedy") {
|
|
159
165
|
// ...
|
|
160
166
|
}
|
|
161
167
|
},
|
|
162
|
-
}
|
|
168
|
+
};
|
|
163
169
|
```
|
|
164
170
|
|
|
165
171
|
- Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
|
|
@@ -182,7 +188,7 @@
|
|
|
182
188
|
Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
|
|
183
189
|
|
|
184
190
|
```js
|
|
185
|
-
import { defineConfig } from
|
|
191
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
186
192
|
|
|
187
193
|
export default defineConfig({
|
|
188
194
|
tools: {
|
|
@@ -192,7 +198,7 @@
|
|
|
192
198
|
},
|
|
193
199
|
},
|
|
194
200
|
},
|
|
195
|
-
})
|
|
201
|
+
});
|
|
196
202
|
```
|
|
197
203
|
|
|
198
204
|
See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
|
|
@@ -324,12 +330,12 @@
|
|
|
324
330
|
example:
|
|
325
331
|
|
|
326
332
|
```js
|
|
327
|
-
import { defineConfig } from
|
|
333
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
328
334
|
export default defineConfig({
|
|
329
335
|
server: {
|
|
330
|
-
base:
|
|
336
|
+
base: "/dist",
|
|
331
337
|
},
|
|
332
|
-
})
|
|
338
|
+
});
|
|
333
339
|
```
|
|
334
340
|
|
|
335
341
|
- Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
|
|
@@ -382,11 +388,11 @@
|
|
|
382
388
|
You can switch to other tools by using:
|
|
383
389
|
|
|
384
390
|
```js
|
|
385
|
-
import { defineConfig } from
|
|
391
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
386
392
|
import {
|
|
387
393
|
CssMinimizerWebpackPlugin,
|
|
388
394
|
pluginCssMinimizer,
|
|
389
|
-
} from
|
|
395
|
+
} from "@rsbuild/plugin-css-minimizer";
|
|
390
396
|
|
|
391
397
|
export default defineConfig({
|
|
392
398
|
plugins: [
|
|
@@ -399,7 +405,7 @@
|
|
|
399
405
|
},
|
|
400
406
|
}),
|
|
401
407
|
],
|
|
402
|
-
})
|
|
408
|
+
});
|
|
403
409
|
```
|
|
404
410
|
|
|
405
411
|
See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
|
|
@@ -409,8 +415,8 @@
|
|
|
409
415
|
You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
|
|
410
416
|
|
|
411
417
|
```js
|
|
412
|
-
import { defineConfig } from
|
|
413
|
-
import { pluginCssMinimizer } from
|
|
418
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
419
|
+
import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
|
|
414
420
|
|
|
415
421
|
export default defineConfig({
|
|
416
422
|
plugins: [
|
|
@@ -422,7 +428,7 @@
|
|
|
422
428
|
},
|
|
423
429
|
}),
|
|
424
430
|
],
|
|
425
|
-
})
|
|
431
|
+
});
|
|
426
432
|
```
|
|
427
433
|
|
|
428
434
|
## 0.7.1
|
|
@@ -442,7 +448,7 @@
|
|
|
442
448
|
You may turn it off using `output.minify.css: false`:
|
|
443
449
|
|
|
444
450
|
```js
|
|
445
|
-
import { defineConfig } from
|
|
451
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
446
452
|
|
|
447
453
|
export default defineConfig({
|
|
448
454
|
output: {
|
|
@@ -450,18 +456,18 @@
|
|
|
450
456
|
css: false,
|
|
451
457
|
},
|
|
452
458
|
},
|
|
453
|
-
})
|
|
459
|
+
});
|
|
454
460
|
```
|
|
455
461
|
|
|
456
462
|
Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
|
|
457
463
|
|
|
458
464
|
```js
|
|
459
|
-
import { defineConfig } from
|
|
460
|
-
import { pluginCssMinimizer } from
|
|
465
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
466
|
+
import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
|
|
461
467
|
|
|
462
468
|
export default defineConfig({
|
|
463
469
|
plugins: [pluginCssMinimizer()],
|
|
464
|
-
})
|
|
470
|
+
});
|
|
465
471
|
```
|
|
466
472
|
|
|
467
473
|
- 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
|
|
@@ -488,22 +494,22 @@
|
|
|
488
494
|
- The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
|
|
489
495
|
|
|
490
496
|
```js
|
|
491
|
-
import { defineConfig } from
|
|
497
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
492
498
|
|
|
493
499
|
export default defineConfig({
|
|
494
500
|
dev: {
|
|
495
501
|
watchFiles: [
|
|
496
502
|
{
|
|
497
|
-
type:
|
|
498
|
-
paths: [
|
|
503
|
+
type: "reload-server",
|
|
504
|
+
paths: ["public/**/*.txt"],
|
|
499
505
|
},
|
|
500
506
|
{
|
|
501
|
-
type:
|
|
502
|
-
paths: [
|
|
507
|
+
type: "reload-page",
|
|
508
|
+
paths: ["public/**/*.json"],
|
|
503
509
|
},
|
|
504
510
|
],
|
|
505
511
|
},
|
|
506
|
-
})
|
|
512
|
+
});
|
|
507
513
|
```
|
|
508
514
|
|
|
509
515
|
- be9b003: Add `source.exclude`.
|
|
@@ -1469,9 +1469,9 @@ export const __webpack_modules__ = {
|
|
|
1469
1469
|
if (void 0 === value) return true;
|
|
1470
1470
|
return "string" == typeof value || "boolean" == typeof value;
|
|
1471
1471
|
});
|
|
1472
|
-
const _io40 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@
|
|
1472
|
+
const _io40 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6589"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
1473
1473
|
if ([
|
|
1474
|
-
"__@toStringTag@
|
|
1474
|
+
"__@toStringTag@6589"
|
|
1475
1475
|
].some((prop)=>key === prop)) return true;
|
|
1476
1476
|
const value = input[key];
|
|
1477
1477
|
if (void 0 === value) return true;
|
|
@@ -3076,14 +3076,14 @@ export const __webpack_modules__ = {
|
|
|
3076
3076
|
if (void 0 === value) return true;
|
|
3077
3077
|
return false;
|
|
3078
3078
|
})));
|
|
3079
|
-
const _io148 = (input, _exceptionable = true)=>"number" == typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" == typeof input.byteLength && "number" == typeof input.byteOffset && "number" == typeof input.length && "Uint8Array" === input["__@toStringTag@
|
|
3079
|
+
const _io148 = (input, _exceptionable = true)=>"number" == typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" == typeof input.byteLength && "number" == typeof input.byteOffset && "number" == typeof input.length && "Uint8Array" === input["__@toStringTag@6589"] && Object.keys(input).every((key)=>{
|
|
3080
3080
|
if ([
|
|
3081
3081
|
"BYTES_PER_ELEMENT",
|
|
3082
3082
|
"buffer",
|
|
3083
3083
|
"byteLength",
|
|
3084
3084
|
"byteOffset",
|
|
3085
3085
|
"length",
|
|
3086
|
-
"__@toStringTag@
|
|
3086
|
+
"__@toStringTag@6589"
|
|
3087
3087
|
].some((prop)=>key === prop)) return true;
|
|
3088
3088
|
const value = input[key];
|
|
3089
3089
|
if (void 0 === value) return true;
|
|
@@ -5719,7 +5719,7 @@ export const __webpack_modules__ = {
|
|
|
5719
5719
|
if (void 0 === value) return true;
|
|
5720
5720
|
return false;
|
|
5721
5721
|
}));
|
|
5722
|
-
const _io357 = (input, _exceptionable = true)=>(void 0 === input.html || "string" == typeof input.html) && null !== input.js && (void 0 === input.js || "function" == typeof input.js || "string" == typeof input.js) && null !== input.css && (void 0 === input.css || "function" == typeof input.css || "string" == typeof input.css) && null !== input.svg && (void 0 === input.svg || "function" == typeof input.svg || "string" == typeof input.svg) && null !== input.font && (void 0 === input.font || "function" == typeof input.font || "string" == typeof input.font) && null !== input.image && (void 0 === input.image || "function" == typeof input.image || "string" == typeof input.image) && null !== input.media && (void 0 === input.media || "function" == typeof input.media || "string" == typeof input.media) && null !== input.assets && (void 0 === input.assets || "function" == typeof input.assets || "string" == typeof input.assets) && (0 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
5722
|
+
const _io357 = (input, _exceptionable = true)=>(void 0 === input.html || "string" == typeof input.html) && null !== input.js && (void 0 === input.js || "function" == typeof input.js || "string" == typeof input.js) && null !== input.css && (void 0 === input.css || "function" == typeof input.css || "string" == typeof input.css) && null !== input.svg && (void 0 === input.svg || "function" == typeof input.svg || "string" == typeof input.svg) && null !== input.font && (void 0 === input.font || "function" == typeof input.font || "string" == typeof input.font) && null !== input.image && (void 0 === input.image || "function" == typeof input.image || "string" == typeof input.image) && null !== input.media && (void 0 === input.media || "function" == typeof input.media || "string" == typeof input.media) && (void 0 === input.wasm || "string" == typeof input.wasm) && null !== input.assets && (void 0 === input.assets || "function" == typeof input.assets || "string" == typeof input.assets) && (0 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
5723
5723
|
if ([
|
|
5724
5724
|
"html",
|
|
5725
5725
|
"js",
|
|
@@ -5728,6 +5728,7 @@ export const __webpack_modules__ = {
|
|
|
5728
5728
|
"font",
|
|
5729
5729
|
"image",
|
|
5730
5730
|
"media",
|
|
5731
|
+
"wasm",
|
|
5731
5732
|
"assets"
|
|
5732
5733
|
].some((prop)=>key === prop)) return true;
|
|
5733
5734
|
const value = input[key];
|
|
@@ -5800,9 +5801,10 @@ export const __webpack_modules__ = {
|
|
|
5800
5801
|
if (void 0 === value) return true;
|
|
5801
5802
|
return false;
|
|
5802
5803
|
}));
|
|
5803
|
-
const _io364 = (input, _exceptionable = true)=>(void 0 === input.minify || "boolean" == typeof input.minify) && null !== input.compress && (void 0 === input.compress || "boolean" == typeof input.compress || "object" == typeof input.compress && null !== input.compress && false === Array.isArray(input.compress) && _io365(input.compress, _exceptionable)) && null !== input.mangle && (void 0 === input.mangle || "boolean" == typeof input.mangle || "object" == typeof input.mangle && null !== input.mangle && false === Array.isArray(input.mangle) && _io366(input.mangle, _exceptionable)) && (void 0 === input.format || "object" == typeof input.format && null !== input.format && false === Array.isArray(input.format) && _io368(input.format, _exceptionable)) && (void 0 === input["module"] || "boolean" == typeof input["module"]) && (0 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
5804
|
+
const _io364 = (input, _exceptionable = true)=>(void 0 === input.minify || "boolean" == typeof input.minify) && (void 0 === input.ecma || "string" == typeof input.ecma || "number" == typeof input.ecma) && null !== input.compress && (void 0 === input.compress || "boolean" == typeof input.compress || "object" == typeof input.compress && null !== input.compress && false === Array.isArray(input.compress) && _io365(input.compress, _exceptionable)) && null !== input.mangle && (void 0 === input.mangle || "boolean" == typeof input.mangle || "object" == typeof input.mangle && null !== input.mangle && false === Array.isArray(input.mangle) && _io366(input.mangle, _exceptionable)) && (void 0 === input.format || "object" == typeof input.format && null !== input.format && false === Array.isArray(input.format) && _io368(input.format, _exceptionable)) && (void 0 === input["module"] || "boolean" == typeof input["module"]) && (0 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
5804
5805
|
if ([
|
|
5805
5806
|
"minify",
|
|
5807
|
+
"ecma",
|
|
5806
5808
|
"compress",
|
|
5807
5809
|
"mangle",
|
|
5808
5810
|
"format",
|
|
@@ -6280,11 +6282,13 @@ export const __webpack_modules__ = {
|
|
|
6280
6282
|
if (void 0 === value) return true;
|
|
6281
6283
|
return false;
|
|
6282
6284
|
}));
|
|
6283
|
-
const _io401 = (input, _exceptionable = true)=>(void 0 === input.pre || Array.isArray(input.pre) && input.pre.every((elem, _index328)=>"string" == typeof elem)) && (void 0 === input.post || Array.isArray(input.post) && input.post.every((elem, _index329)=>"string" == typeof elem)) && "string" == typeof input.name && (void 0 === input.remove || Array.isArray(input.remove) && input.remove.every((elem, _index330)=>"string" == typeof elem)) && true && (2 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
6285
|
+
const _io401 = (input, _exceptionable = true)=>(void 0 === input.pre || Array.isArray(input.pre) && input.pre.every((elem, _index328)=>"string" == typeof elem)) && (void 0 === input.post || Array.isArray(input.post) && input.post.every((elem, _index329)=>"string" == typeof elem)) && "string" == typeof input.name && null !== input.apply && (void 0 === input.apply || "function" == typeof input.apply || "serve" === input.apply || "build" === input.apply) && (void 0 === input.enforce || "pre" === input.enforce || "post" === input.enforce) && (void 0 === input.remove || Array.isArray(input.remove) && input.remove.every((elem, _index330)=>"string" == typeof elem)) && true && (2 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
6284
6286
|
if ([
|
|
6285
6287
|
"pre",
|
|
6286
6288
|
"post",
|
|
6287
6289
|
"name",
|
|
6290
|
+
"apply",
|
|
6291
|
+
"enforce",
|
|
6288
6292
|
"remove",
|
|
6289
6293
|
"setup"
|
|
6290
6294
|
].some((prop)=>key === prop)) return true;
|
|
@@ -6292,9 +6296,9 @@ export const __webpack_modules__ = {
|
|
|
6292
6296
|
if (void 0 === value) return true;
|
|
6293
6297
|
return false;
|
|
6294
6298
|
}));
|
|
6295
|
-
const _io402 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@
|
|
6299
|
+
const _io402 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6589"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
6296
6300
|
if ([
|
|
6297
|
-
"__@toStringTag@
|
|
6301
|
+
"__@toStringTag@6589"
|
|
6298
6302
|
].some((prop)=>key === prop)) return true;
|
|
6299
6303
|
const value = input[key];
|
|
6300
6304
|
if (void 0 === value) return true;
|
|
@@ -6883,18 +6887,18 @@ export const __webpack_modules__ = {
|
|
|
6883
6887
|
return false;
|
|
6884
6888
|
})();
|
|
6885
6889
|
const _iu1 = (input, _exceptionable = true)=>(()=>{
|
|
6886
|
-
if (void 0 !== input["__@toStringTag@
|
|
6890
|
+
if (void 0 !== input["__@toStringTag@6589"]) return _io148(input, _exceptionable);
|
|
6887
6891
|
if (void 0 !== input.pem) return _io149(input, _exceptionable);
|
|
6888
6892
|
return false;
|
|
6889
6893
|
})();
|
|
6890
6894
|
const _iu2 = (input, _exceptionable = true)=>(()=>{
|
|
6891
|
-
if (void 0 !== input["__@toStringTag@
|
|
6895
|
+
if (void 0 !== input["__@toStringTag@6589"]) return _io148(input, _exceptionable);
|
|
6892
6896
|
if (void 0 !== input.buf) return _io150(input, _exceptionable);
|
|
6893
6897
|
return false;
|
|
6894
6898
|
})();
|
|
6895
6899
|
const _iu3 = (input, _exceptionable = true)=>(()=>{
|
|
6896
6900
|
if (void 0 !== input.name) return _io401(input, _exceptionable);
|
|
6897
|
-
if (void 0 !== input["__@toStringTag@
|
|
6901
|
+
if (void 0 !== input["__@toStringTag@6589"]) return _io402(input, _exceptionable);
|
|
6898
6902
|
return false;
|
|
6899
6903
|
})();
|
|
6900
6904
|
const _iu4 = (input, _exceptionable = true)=>(()=>{
|
|
@@ -9260,14 +9264,14 @@ export const __webpack_modules__ = {
|
|
|
9260
9264
|
}).every((flag)=>flag)
|
|
9261
9265
|
].every((flag)=>flag);
|
|
9262
9266
|
const _vo40 = (input, _path, _exceptionable = true)=>[
|
|
9263
|
-
"string" == typeof input["__@toStringTag@
|
|
9264
|
-
path: _path + "[\"__@toStringTag@
|
|
9267
|
+
"string" == typeof input["__@toStringTag@6589"] || _report(_exceptionable, {
|
|
9268
|
+
path: _path + "[\"__@toStringTag@6589\"]",
|
|
9265
9269
|
expected: "string",
|
|
9266
|
-
value: input["__@toStringTag@
|
|
9270
|
+
value: input["__@toStringTag@6589"]
|
|
9267
9271
|
}),
|
|
9268
9272
|
1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
|
|
9269
9273
|
if ([
|
|
9270
|
-
"__@toStringTag@
|
|
9274
|
+
"__@toStringTag@6589"
|
|
9271
9275
|
].some((prop)=>key === prop)) return true;
|
|
9272
9276
|
const value = input[key];
|
|
9273
9277
|
if (void 0 === value) return true;
|
|
@@ -17820,10 +17824,10 @@ export const __webpack_modules__ = {
|
|
|
17820
17824
|
expected: "number",
|
|
17821
17825
|
value: input.length
|
|
17822
17826
|
}),
|
|
17823
|
-
"Uint8Array" === input["__@toStringTag@
|
|
17824
|
-
path: _path + "[\"__@toStringTag@
|
|
17827
|
+
"Uint8Array" === input["__@toStringTag@6589"] || _report(_exceptionable, {
|
|
17828
|
+
path: _path + "[\"__@toStringTag@6589\"]",
|
|
17825
17829
|
expected: "\"Uint8Array\"",
|
|
17826
|
-
value: input["__@toStringTag@
|
|
17830
|
+
value: input["__@toStringTag@6589"]
|
|
17827
17831
|
}),
|
|
17828
17832
|
false === _exceptionable || Object.keys(input).map((key)=>{
|
|
17829
17833
|
if ([
|
|
@@ -17832,7 +17836,7 @@ export const __webpack_modules__ = {
|
|
|
17832
17836
|
"byteLength",
|
|
17833
17837
|
"byteOffset",
|
|
17834
17838
|
"length",
|
|
17835
|
-
"__@toStringTag@
|
|
17839
|
+
"__@toStringTag@6589"
|
|
17836
17840
|
].some((prop)=>key === prop)) return true;
|
|
17837
17841
|
const value = input[key];
|
|
17838
17842
|
if (void 0 === value) return true;
|
|
@@ -31793,6 +31797,11 @@ export const __webpack_modules__ = {
|
|
|
31793
31797
|
expected: "(string | undefined)",
|
|
31794
31798
|
value: input.media
|
|
31795
31799
|
})),
|
|
31800
|
+
void 0 === input.wasm || "string" == typeof input.wasm || _report(_exceptionable, {
|
|
31801
|
+
path: _path + ".wasm",
|
|
31802
|
+
expected: "(string | undefined)",
|
|
31803
|
+
value: input.wasm
|
|
31804
|
+
}),
|
|
31796
31805
|
(null !== input.assets || _report(_exceptionable, {
|
|
31797
31806
|
path: _path + ".assets",
|
|
31798
31807
|
expected: "(string | undefined)",
|
|
@@ -31811,6 +31820,7 @@ export const __webpack_modules__ = {
|
|
|
31811
31820
|
"font",
|
|
31812
31821
|
"image",
|
|
31813
31822
|
"media",
|
|
31823
|
+
"wasm",
|
|
31814
31824
|
"assets"
|
|
31815
31825
|
].some((prop)=>key === prop)) return true;
|
|
31816
31826
|
const value = input[key];
|
|
@@ -32150,6 +32160,11 @@ export const __webpack_modules__ = {
|
|
|
32150
32160
|
expected: "(boolean | undefined)",
|
|
32151
32161
|
value: input.minify
|
|
32152
32162
|
}),
|
|
32163
|
+
void 0 === input.ecma || "string" == typeof input.ecma || "number" == typeof input.ecma || _report(_exceptionable, {
|
|
32164
|
+
path: _path + ".ecma",
|
|
32165
|
+
expected: "(number | string | undefined)",
|
|
32166
|
+
value: input.ecma
|
|
32167
|
+
}),
|
|
32153
32168
|
(null !== input.compress || _report(_exceptionable, {
|
|
32154
32169
|
path: _path + ".compress",
|
|
32155
32170
|
expected: "(TerserCompressOptions.o1 | boolean | undefined)",
|
|
@@ -32193,6 +32208,7 @@ export const __webpack_modules__ = {
|
|
|
32193
32208
|
0 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
|
|
32194
32209
|
if ([
|
|
32195
32210
|
"minify",
|
|
32211
|
+
"ecma",
|
|
32196
32212
|
"compress",
|
|
32197
32213
|
"mangle",
|
|
32198
32214
|
"format",
|
|
@@ -34649,6 +34665,20 @@ export const __webpack_modules__ = {
|
|
|
34649
34665
|
expected: "string",
|
|
34650
34666
|
value: input.name
|
|
34651
34667
|
}),
|
|
34668
|
+
(null !== input.apply || _report(_exceptionable, {
|
|
34669
|
+
path: _path + ".apply",
|
|
34670
|
+
expected: "(\"build\" | \"serve\" | undefined)",
|
|
34671
|
+
value: input.apply
|
|
34672
|
+
})) && (void 0 === input.apply || "function" == typeof input.apply || "serve" === input.apply || "build" === input.apply || _report(_exceptionable, {
|
|
34673
|
+
path: _path + ".apply",
|
|
34674
|
+
expected: "(\"build\" | \"serve\" | undefined)",
|
|
34675
|
+
value: input.apply
|
|
34676
|
+
})),
|
|
34677
|
+
void 0 === input.enforce || "pre" === input.enforce || "post" === input.enforce || _report(_exceptionable, {
|
|
34678
|
+
path: _path + ".enforce",
|
|
34679
|
+
expected: "(\"post\" | \"pre\" | undefined)",
|
|
34680
|
+
value: input.enforce
|
|
34681
|
+
}),
|
|
34652
34682
|
void 0 === input.remove || (Array.isArray(input.remove) || _report(_exceptionable, {
|
|
34653
34683
|
path: _path + ".remove",
|
|
34654
34684
|
expected: "(Array<string> | undefined)",
|
|
@@ -34668,6 +34698,8 @@ export const __webpack_modules__ = {
|
|
|
34668
34698
|
"pre",
|
|
34669
34699
|
"post",
|
|
34670
34700
|
"name",
|
|
34701
|
+
"apply",
|
|
34702
|
+
"enforce",
|
|
34671
34703
|
"remove",
|
|
34672
34704
|
"setup"
|
|
34673
34705
|
].some((prop)=>key === prop)) return true;
|
|
@@ -34681,14 +34713,14 @@ export const __webpack_modules__ = {
|
|
|
34681
34713
|
}).every((flag)=>flag)
|
|
34682
34714
|
].every((flag)=>flag);
|
|
34683
34715
|
const _vo402 = (input, _path, _exceptionable = true)=>[
|
|
34684
|
-
"string" == typeof input["__@toStringTag@
|
|
34685
|
-
path: _path + "[\"__@toStringTag@
|
|
34716
|
+
"string" == typeof input["__@toStringTag@6589"] || _report(_exceptionable, {
|
|
34717
|
+
path: _path + "[\"__@toStringTag@6589\"]",
|
|
34686
34718
|
expected: "string",
|
|
34687
|
-
value: input["__@toStringTag@
|
|
34719
|
+
value: input["__@toStringTag@6589"]
|
|
34688
34720
|
}),
|
|
34689
34721
|
1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
|
|
34690
34722
|
if ([
|
|
34691
|
-
"__@toStringTag@
|
|
34723
|
+
"__@toStringTag@6589"
|
|
34692
34724
|
].some((prop)=>key === prop)) return true;
|
|
34693
34725
|
const value = input[key];
|
|
34694
34726
|
if (void 0 === value) return true;
|
|
@@ -37425,7 +37457,7 @@ export const __webpack_modules__ = {
|
|
|
37425
37457
|
});
|
|
37426
37458
|
})();
|
|
37427
37459
|
const _vu1 = (input, _path, _exceptionable = true)=>(()=>{
|
|
37428
|
-
if (void 0 !== input["__@toStringTag@
|
|
37460
|
+
if (void 0 !== input["__@toStringTag@6589"]) return _vo148(input, _path, _exceptionable);
|
|
37429
37461
|
if (void 0 !== input.pem) return _vo149(input, _path, _exceptionable);
|
|
37430
37462
|
return _report(_exceptionable, {
|
|
37431
37463
|
path: _path,
|
|
@@ -37434,7 +37466,7 @@ export const __webpack_modules__ = {
|
|
|
37434
37466
|
});
|
|
37435
37467
|
})();
|
|
37436
37468
|
const _vu2 = (input, _path, _exceptionable = true)=>(()=>{
|
|
37437
|
-
if (void 0 !== input["__@toStringTag@
|
|
37469
|
+
if (void 0 !== input["__@toStringTag@6589"]) return _vo148(input, _path, _exceptionable);
|
|
37438
37470
|
if (void 0 !== input.buf) return _vo150(input, _path, _exceptionable);
|
|
37439
37471
|
return _report(_exceptionable, {
|
|
37440
37472
|
path: _path,
|
|
@@ -37444,7 +37476,7 @@ export const __webpack_modules__ = {
|
|
|
37444
37476
|
})();
|
|
37445
37477
|
const _vu3 = (input, _path, _exceptionable = true)=>(()=>{
|
|
37446
37478
|
if (void 0 !== input.name) return _vo401(input, _path, _exceptionable);
|
|
37447
|
-
if (void 0 !== input["__@toStringTag@
|
|
37479
|
+
if (void 0 !== input["__@toStringTag@6589"]) return _vo402(input, _path, _exceptionable);
|
|
37448
37480
|
return _report(_exceptionable, {
|
|
37449
37481
|
path: _path,
|
|
37450
37482
|
expected: "(LooseRsbuildPlugin | RsbuildPlugins | LooseRsbuildPlugin | Falsy)",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/rspeedy-canary",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.4-canary-20250801-4c20781e",
|
|
4
4
|
"description": "A webpack/rspack-based frontend toolchain for Lynx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@lynx-js/chunk-loading-webpack-plugin": "npm:@lynx-js/chunk-loading-webpack-plugin-canary@0.3.0",
|
|
50
50
|
"@lynx-js/webpack-dev-transport": "npm:@lynx-js/webpack-dev-transport-canary@0.2.0",
|
|
51
51
|
"@lynx-js/websocket": "npm:@lynx-js/websocket-canary@0.0.4",
|
|
52
|
-
"@rsbuild/core": "1.4.
|
|
52
|
+
"@rsbuild/core": "1.4.12",
|
|
53
53
|
"@rsbuild/plugin-css-minimizer": "1.0.2",
|
|
54
54
|
"@rsdoctor/rspack-plugin": "1.1.8"
|
|
55
55
|
},
|