@lynx-js/rspeedy-canary 0.10.7 → 0.10.8-canary-20250820-f0d483ca
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 +24 -24
- package/dist/src_plugins_dev_plugin_ts.js +11 -3
- package/dist/src_plugins_index_ts.js +1 -10
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @lynx-js/rspeedy
|
|
2
2
|
|
|
3
|
+
## 0.10.8-canary-20250820072701-f0d483ca2d3e208a618727590061b0babc075737
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix missing `publicPath` using when `rspeedy dev --mode production`. ([#1310](https://github.com/lynx-family/lynx-stack/pull/1310))
|
|
8
|
+
|
|
3
9
|
## 0.10.7
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -77,28 +83,28 @@
|
|
|
77
83
|
|
|
78
84
|
```ts
|
|
79
85
|
type InlineChunkTestFunction = (params: {
|
|
80
|
-
size: number
|
|
81
|
-
name: string
|
|
82
|
-
}) => boolean
|
|
86
|
+
size: number;
|
|
87
|
+
name: string;
|
|
88
|
+
}) => boolean;
|
|
83
89
|
|
|
84
|
-
type InlineChunkTest = RegExp | InlineChunkTestFunction
|
|
90
|
+
type InlineChunkTest = RegExp | InlineChunkTestFunction;
|
|
85
91
|
|
|
86
92
|
type InlineChunkConfig =
|
|
87
93
|
| boolean
|
|
88
94
|
| InlineChunkTest
|
|
89
|
-
| { enable?: boolean |
|
|
95
|
+
| { enable?: boolean | "auto"; test: InlineChunkTest };
|
|
90
96
|
```
|
|
91
97
|
|
|
92
98
|
```ts
|
|
93
|
-
import { defineConfig } from
|
|
99
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
94
100
|
|
|
95
101
|
export default defineConfig({
|
|
96
102
|
output: {
|
|
97
103
|
inlineScripts: ({ name, size }) => {
|
|
98
|
-
return name.includes(
|
|
104
|
+
return name.includes("foo") && size < 1000;
|
|
99
105
|
},
|
|
100
106
|
},
|
|
101
|
-
})
|
|
107
|
+
});
|
|
102
108
|
```
|
|
103
109
|
|
|
104
110
|
- docs: remove chunks: 'all' in comments ([#1168](https://github.com/lynx-family/lynx-stack/pull/1168))
|
|
@@ -141,13 +147,13 @@
|
|
|
141
147
|
example:
|
|
142
148
|
|
|
143
149
|
```js
|
|
144
|
-
import { defineConfig } from
|
|
150
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
145
151
|
|
|
146
152
|
export default defineConfig({
|
|
147
153
|
output: {
|
|
148
154
|
inlineScripts: false,
|
|
149
155
|
},
|
|
150
|
-
})
|
|
156
|
+
});
|
|
151
157
|
```
|
|
152
158
|
|
|
153
159
|
- Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
|
|
@@ -167,12 +173,12 @@
|
|
|
167
173
|
example:
|
|
168
174
|
|
|
169
175
|
```js
|
|
170
|
-
import { defineConfig } from
|
|
176
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
171
177
|
export default defineConfig({
|
|
172
178
|
source: {
|
|
173
|
-
preEntry:
|
|
179
|
+
preEntry: "./src/polyfill.ts",
|
|
174
180
|
},
|
|
175
|
-
})
|
|
181
|
+
});
|
|
176
182
|
```
|
|
177
183
|
|
|
178
184
|
- Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
|
|
@@ -183,17 +189,17 @@
|
|
|
183
189
|
|
|
184
190
|
```js
|
|
185
191
|
export const myPlugin = {
|
|
186
|
-
name:
|
|
192
|
+
name: "my-plugin",
|
|
187
193
|
setup(api) {
|
|
188
|
-
const { callerName } = api.context
|
|
194
|
+
const { callerName } = api.context;
|
|
189
195
|
|
|
190
|
-
if (callerName ===
|
|
196
|
+
if (callerName === "rslib") {
|
|
191
197
|
// ...
|
|
192
|
-
} else if (callerName ===
|
|
198
|
+
} else if (callerName === "rspeedy") {
|
|
193
199
|
// ...
|
|
194
200
|
}
|
|
195
201
|
},
|
|
196
|
-
}
|
|
202
|
+
};
|
|
197
203
|
```
|
|
198
204
|
|
|
199
205
|
- Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
|
|
@@ -216,7 +222,7 @@
|
|
|
216
222
|
Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
|
|
217
223
|
|
|
218
224
|
```js
|
|
219
|
-
import { defineConfig } from
|
|
225
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
220
226
|
|
|
221
227
|
export default defineConfig({
|
|
222
228
|
tools: {
|
|
@@ -226,7 +232,7 @@
|
|
|
226
232
|
},
|
|
227
233
|
},
|
|
228
234
|
},
|
|
229
|
-
})
|
|
235
|
+
});
|
|
230
236
|
```
|
|
231
237
|
|
|
232
238
|
See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
|
|
@@ -358,12 +364,12 @@
|
|
|
358
364
|
example:
|
|
359
365
|
|
|
360
366
|
```js
|
|
361
|
-
import { defineConfig } from
|
|
367
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
362
368
|
export default defineConfig({
|
|
363
369
|
server: {
|
|
364
|
-
base:
|
|
370
|
+
base: "/dist",
|
|
365
371
|
},
|
|
366
|
-
})
|
|
372
|
+
});
|
|
367
373
|
```
|
|
368
374
|
|
|
369
375
|
- Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
|
|
@@ -416,11 +422,11 @@
|
|
|
416
422
|
You can switch to other tools by using:
|
|
417
423
|
|
|
418
424
|
```js
|
|
419
|
-
import { defineConfig } from
|
|
425
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
420
426
|
import {
|
|
421
427
|
CssMinimizerWebpackPlugin,
|
|
422
428
|
pluginCssMinimizer,
|
|
423
|
-
} from
|
|
429
|
+
} from "@rsbuild/plugin-css-minimizer";
|
|
424
430
|
|
|
425
431
|
export default defineConfig({
|
|
426
432
|
plugins: [
|
|
@@ -433,7 +439,7 @@
|
|
|
433
439
|
},
|
|
434
440
|
}),
|
|
435
441
|
],
|
|
436
|
-
})
|
|
442
|
+
});
|
|
437
443
|
```
|
|
438
444
|
|
|
439
445
|
See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
|
|
@@ -443,8 +449,8 @@
|
|
|
443
449
|
You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
|
|
444
450
|
|
|
445
451
|
```js
|
|
446
|
-
import { defineConfig } from
|
|
447
|
-
import { pluginCssMinimizer } from
|
|
452
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
453
|
+
import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
|
|
448
454
|
|
|
449
455
|
export default defineConfig({
|
|
450
456
|
plugins: [
|
|
@@ -456,7 +462,7 @@
|
|
|
456
462
|
},
|
|
457
463
|
}),
|
|
458
464
|
],
|
|
459
|
-
})
|
|
465
|
+
});
|
|
460
466
|
```
|
|
461
467
|
|
|
462
468
|
## 0.7.1
|
|
@@ -476,7 +482,7 @@
|
|
|
476
482
|
You may turn it off using `output.minify.css: false`:
|
|
477
483
|
|
|
478
484
|
```js
|
|
479
|
-
import { defineConfig } from
|
|
485
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
480
486
|
|
|
481
487
|
export default defineConfig({
|
|
482
488
|
output: {
|
|
@@ -484,18 +490,18 @@
|
|
|
484
490
|
css: false,
|
|
485
491
|
},
|
|
486
492
|
},
|
|
487
|
-
})
|
|
493
|
+
});
|
|
488
494
|
```
|
|
489
495
|
|
|
490
496
|
Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
|
|
491
497
|
|
|
492
498
|
```js
|
|
493
|
-
import { defineConfig } from
|
|
494
|
-
import { pluginCssMinimizer } from
|
|
499
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
500
|
+
import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
|
|
495
501
|
|
|
496
502
|
export default defineConfig({
|
|
497
503
|
plugins: [pluginCssMinimizer()],
|
|
498
|
-
})
|
|
504
|
+
});
|
|
499
505
|
```
|
|
500
506
|
|
|
501
507
|
- 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
|
|
@@ -522,22 +528,22 @@
|
|
|
522
528
|
- The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
|
|
523
529
|
|
|
524
530
|
```js
|
|
525
|
-
import { defineConfig } from
|
|
531
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
526
532
|
|
|
527
533
|
export default defineConfig({
|
|
528
534
|
dev: {
|
|
529
535
|
watchFiles: [
|
|
530
536
|
{
|
|
531
|
-
type:
|
|
532
|
-
paths: [
|
|
537
|
+
type: "reload-server",
|
|
538
|
+
paths: ["public/**/*.txt"],
|
|
533
539
|
},
|
|
534
540
|
{
|
|
535
|
-
type:
|
|
536
|
-
paths: [
|
|
541
|
+
type: "reload-page",
|
|
542
|
+
paths: ["public/**/*.json"],
|
|
537
543
|
},
|
|
538
544
|
],
|
|
539
545
|
},
|
|
540
|
-
})
|
|
546
|
+
});
|
|
541
547
|
```
|
|
542
548
|
|
|
543
549
|
- be9b003: Add `source.exclude`.
|
|
@@ -1490,9 +1490,9 @@ export const __webpack_modules__ = {
|
|
|
1490
1490
|
if (void 0 === value) return true;
|
|
1491
1491
|
return "string" == typeof value || "boolean" == typeof value;
|
|
1492
1492
|
});
|
|
1493
|
-
const _io41 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@
|
|
1493
|
+
const _io41 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6638"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
1494
1494
|
if ([
|
|
1495
|
-
"__@toStringTag@
|
|
1495
|
+
"__@toStringTag@6638"
|
|
1496
1496
|
].some((prop)=>key === prop)) return true;
|
|
1497
1497
|
const value = input[key];
|
|
1498
1498
|
if (void 0 === value) return true;
|
|
@@ -3097,14 +3097,14 @@ export const __webpack_modules__ = {
|
|
|
3097
3097
|
if (void 0 === value) return true;
|
|
3098
3098
|
return false;
|
|
3099
3099
|
})));
|
|
3100
|
-
const _io149 = (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@
|
|
3100
|
+
const _io149 = (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@6638"] && Object.keys(input).every((key)=>{
|
|
3101
3101
|
if ([
|
|
3102
3102
|
"BYTES_PER_ELEMENT",
|
|
3103
3103
|
"buffer",
|
|
3104
3104
|
"byteLength",
|
|
3105
3105
|
"byteOffset",
|
|
3106
3106
|
"length",
|
|
3107
|
-
"__@toStringTag@
|
|
3107
|
+
"__@toStringTag@6638"
|
|
3108
3108
|
].some((prop)=>key === prop)) return true;
|
|
3109
3109
|
const value = input[key];
|
|
3110
3110
|
if (void 0 === value) return true;
|
|
@@ -6356,9 +6356,9 @@ export const __webpack_modules__ = {
|
|
|
6356
6356
|
if (void 0 === value) return true;
|
|
6357
6357
|
return false;
|
|
6358
6358
|
}));
|
|
6359
|
-
const _io406 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@
|
|
6359
|
+
const _io406 = (input, _exceptionable = true)=>"string" == typeof input["__@toStringTag@6638"] && (1 === Object.keys(input).length || Object.keys(input).every((key)=>{
|
|
6360
6360
|
if ([
|
|
6361
|
-
"__@toStringTag@
|
|
6361
|
+
"__@toStringTag@6638"
|
|
6362
6362
|
].some((prop)=>key === prop)) return true;
|
|
6363
6363
|
const value = input[key];
|
|
6364
6364
|
if (void 0 === value) return true;
|
|
@@ -6951,18 +6951,18 @@ export const __webpack_modules__ = {
|
|
|
6951
6951
|
return false;
|
|
6952
6952
|
})();
|
|
6953
6953
|
const _iu1 = (input, _exceptionable = true)=>(()=>{
|
|
6954
|
-
if (void 0 !== input["__@toStringTag@
|
|
6954
|
+
if (void 0 !== input["__@toStringTag@6638"]) return _io149(input, _exceptionable);
|
|
6955
6955
|
if (void 0 !== input.pem) return _io150(input, _exceptionable);
|
|
6956
6956
|
return false;
|
|
6957
6957
|
})();
|
|
6958
6958
|
const _iu2 = (input, _exceptionable = true)=>(()=>{
|
|
6959
|
-
if (void 0 !== input["__@toStringTag@
|
|
6959
|
+
if (void 0 !== input["__@toStringTag@6638"]) return _io149(input, _exceptionable);
|
|
6960
6960
|
if (void 0 !== input.buf) return _io151(input, _exceptionable);
|
|
6961
6961
|
return false;
|
|
6962
6962
|
})();
|
|
6963
6963
|
const _iu3 = (input, _exceptionable = true)=>(()=>{
|
|
6964
6964
|
if (void 0 !== input.name) return _io405(input, _exceptionable);
|
|
6965
|
-
if (void 0 !== input["__@toStringTag@
|
|
6965
|
+
if (void 0 !== input["__@toStringTag@6638"]) return _io406(input, _exceptionable);
|
|
6966
6966
|
return false;
|
|
6967
6967
|
})();
|
|
6968
6968
|
const _iu4 = (input, _exceptionable = true)=>(()=>{
|
|
@@ -9547,14 +9547,14 @@ export const __webpack_modules__ = {
|
|
|
9547
9547
|
}).every((flag)=>flag)
|
|
9548
9548
|
].every((flag)=>flag);
|
|
9549
9549
|
const _vo41 = (input, _path, _exceptionable = true)=>[
|
|
9550
|
-
"string" == typeof input["__@toStringTag@
|
|
9551
|
-
path: _path + "[\"__@toStringTag@
|
|
9550
|
+
"string" == typeof input["__@toStringTag@6638"] || _report(_exceptionable, {
|
|
9551
|
+
path: _path + "[\"__@toStringTag@6638\"]",
|
|
9552
9552
|
expected: "string",
|
|
9553
|
-
value: input["__@toStringTag@
|
|
9553
|
+
value: input["__@toStringTag@6638"]
|
|
9554
9554
|
}),
|
|
9555
9555
|
1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
|
|
9556
9556
|
if ([
|
|
9557
|
-
"__@toStringTag@
|
|
9557
|
+
"__@toStringTag@6638"
|
|
9558
9558
|
].some((prop)=>key === prop)) return true;
|
|
9559
9559
|
const value = input[key];
|
|
9560
9560
|
if (void 0 === value) return true;
|
|
@@ -18542,10 +18542,10 @@ export const __webpack_modules__ = {
|
|
|
18542
18542
|
expected: "number",
|
|
18543
18543
|
value: input.length
|
|
18544
18544
|
}),
|
|
18545
|
-
"Uint8Array" === input["__@toStringTag@
|
|
18546
|
-
path: _path + "[\"__@toStringTag@
|
|
18545
|
+
"Uint8Array" === input["__@toStringTag@6638"] || _report(_exceptionable, {
|
|
18546
|
+
path: _path + "[\"__@toStringTag@6638\"]",
|
|
18547
18547
|
expected: "\"Uint8Array\"",
|
|
18548
|
-
value: input["__@toStringTag@
|
|
18548
|
+
value: input["__@toStringTag@6638"]
|
|
18549
18549
|
}),
|
|
18550
18550
|
false === _exceptionable || Object.keys(input).map((key)=>{
|
|
18551
18551
|
if ([
|
|
@@ -18554,7 +18554,7 @@ export const __webpack_modules__ = {
|
|
|
18554
18554
|
"byteLength",
|
|
18555
18555
|
"byteOffset",
|
|
18556
18556
|
"length",
|
|
18557
|
-
"__@toStringTag@
|
|
18557
|
+
"__@toStringTag@6638"
|
|
18558
18558
|
].some((prop)=>key === prop)) return true;
|
|
18559
18559
|
const value = input[key];
|
|
18560
18560
|
if (void 0 === value) return true;
|
|
@@ -36607,14 +36607,14 @@ export const __webpack_modules__ = {
|
|
|
36607
36607
|
}).every((flag)=>flag)
|
|
36608
36608
|
].every((flag)=>flag);
|
|
36609
36609
|
const _vo406 = (input, _path, _exceptionable = true)=>[
|
|
36610
|
-
"string" == typeof input["__@toStringTag@
|
|
36611
|
-
path: _path + "[\"__@toStringTag@
|
|
36610
|
+
"string" == typeof input["__@toStringTag@6638"] || _report(_exceptionable, {
|
|
36611
|
+
path: _path + "[\"__@toStringTag@6638\"]",
|
|
36612
36612
|
expected: "string",
|
|
36613
|
-
value: input["__@toStringTag@
|
|
36613
|
+
value: input["__@toStringTag@6638"]
|
|
36614
36614
|
}),
|
|
36615
36615
|
1 === Object.keys(input).length || false === _exceptionable || Object.keys(input).map((key)=>{
|
|
36616
36616
|
if ([
|
|
36617
|
-
"__@toStringTag@
|
|
36617
|
+
"__@toStringTag@6638"
|
|
36618
36618
|
].some((prop)=>key === prop)) return true;
|
|
36619
36619
|
const value = input[key];
|
|
36620
36620
|
if (void 0 === value) return true;
|
|
@@ -39638,7 +39638,7 @@ export const __webpack_modules__ = {
|
|
|
39638
39638
|
});
|
|
39639
39639
|
})();
|
|
39640
39640
|
const _vu1 = (input, _path, _exceptionable = true)=>(()=>{
|
|
39641
|
-
if (void 0 !== input["__@toStringTag@
|
|
39641
|
+
if (void 0 !== input["__@toStringTag@6638"]) return _vo149(input, _path, _exceptionable);
|
|
39642
39642
|
if (void 0 !== input.pem) return _vo150(input, _path, _exceptionable);
|
|
39643
39643
|
return _report(_exceptionable, {
|
|
39644
39644
|
path: _path,
|
|
@@ -39647,7 +39647,7 @@ export const __webpack_modules__ = {
|
|
|
39647
39647
|
});
|
|
39648
39648
|
})();
|
|
39649
39649
|
const _vu2 = (input, _path, _exceptionable = true)=>(()=>{
|
|
39650
|
-
if (void 0 !== input["__@toStringTag@
|
|
39650
|
+
if (void 0 !== input["__@toStringTag@6638"]) return _vo149(input, _path, _exceptionable);
|
|
39651
39651
|
if (void 0 !== input.buf) return _vo151(input, _path, _exceptionable);
|
|
39652
39652
|
return _report(_exceptionable, {
|
|
39653
39653
|
path: _path,
|
|
@@ -39657,7 +39657,7 @@ export const __webpack_modules__ = {
|
|
|
39657
39657
|
})();
|
|
39658
39658
|
const _vu3 = (input, _path, _exceptionable = true)=>(()=>{
|
|
39659
39659
|
if (void 0 !== input.name) return _vo405(input, _path, _exceptionable);
|
|
39660
|
-
if (void 0 !== input["__@toStringTag@
|
|
39660
|
+
if (void 0 !== input["__@toStringTag@6638"]) return _vo406(input, _path, _exceptionable);
|
|
39661
39661
|
return _report(_exceptionable, {
|
|
39662
39662
|
path: _path,
|
|
39663
39663
|
expected: "(LooseRsbuildPlugin | RsbuildPlugins | LooseRsbuildPlugin | Falsy)",
|
|
@@ -27,6 +27,9 @@ export const __webpack_modules__ = {
|
|
|
27
27
|
function pluginDev(options, server) {
|
|
28
28
|
return {
|
|
29
29
|
name: 'lynx:rsbuild:dev',
|
|
30
|
+
apply (config, { action }) {
|
|
31
|
+
return 'dev' === action || 'development' === config.mode;
|
|
32
|
+
},
|
|
30
33
|
async setup (api) {
|
|
31
34
|
const hostname = server?.host ?? await findIp('v4');
|
|
32
35
|
let assetPrefix = options?.assetPrefix;
|
|
@@ -58,13 +61,18 @@ export const __webpack_modules__ = {
|
|
|
58
61
|
dev: {
|
|
59
62
|
assetPrefix,
|
|
60
63
|
client: {
|
|
61
|
-
host: hostname
|
|
64
|
+
host: hostname,
|
|
65
|
+
port: '<port>'
|
|
62
66
|
}
|
|
67
|
+
},
|
|
68
|
+
output: {
|
|
69
|
+
assetPrefix
|
|
63
70
|
}
|
|
64
71
|
}));
|
|
65
72
|
const require = (0, external_node_module_.createRequire)(import.meta.url);
|
|
66
|
-
api.modifyBundlerChain((chain, {
|
|
67
|
-
|
|
73
|
+
api.modifyBundlerChain((chain, { isDev, environment })=>{
|
|
74
|
+
const { action } = api.context;
|
|
75
|
+
if ('dev' !== action && !isDev) return;
|
|
68
76
|
const rsbuildPath = require.resolve('@rsbuild/core');
|
|
69
77
|
const rspeedyDir = external_node_path_["default"].dirname(require.resolve('@lynx-js/rspeedy/package.json'));
|
|
70
78
|
const searchParams = new URLSearchParams({
|
|
@@ -18,16 +18,11 @@ export const __webpack_modules__ = {
|
|
|
18
18
|
]);
|
|
19
19
|
rsbuildInstance.addPlugins(await Promise.all(debugPlugins));
|
|
20
20
|
}
|
|
21
|
-
async function applyDefaultDevPlugins(rsbuildInstance, config) {
|
|
22
|
-
const devPlugins = Object.freeze([
|
|
23
|
-
__webpack_require__.e("src_plugins_dev_plugin_ts").then(__webpack_require__.bind(__webpack_require__, "./src/plugins/dev.plugin.ts")).then(({ pluginDev })=>pluginDev(config.dev, config.server))
|
|
24
|
-
]);
|
|
25
|
-
rsbuildInstance.addPlugins(await Promise.all(devPlugins));
|
|
26
|
-
}
|
|
27
21
|
async function applyDefaultPlugins(rsbuildInstance, config) {
|
|
28
22
|
const defaultPlugins = Object.freeze([
|
|
29
23
|
__webpack_require__.e("src_plugins_api_plugin_ts").then(__webpack_require__.bind(__webpack_require__, "./src/plugins/api.plugin.ts")).then(({ pluginAPI })=>pluginAPI(config)),
|
|
30
24
|
__webpack_require__.e("src_plugins_chunkLoading_plugin_ts").then(__webpack_require__.bind(__webpack_require__, "./src/plugins/chunkLoading.plugin.ts")).then(({ pluginChunkLoading })=>pluginChunkLoading()),
|
|
25
|
+
__webpack_require__.e("src_plugins_dev_plugin_ts").then(__webpack_require__.bind(__webpack_require__, "./src/plugins/dev.plugin.ts")).then(({ pluginDev })=>pluginDev(config.dev, config.server)),
|
|
31
26
|
__webpack_require__.e("src_plugins_minify_plugin_ts").then(__webpack_require__.bind(__webpack_require__, "./src/plugins/minify.plugin.ts")).then(({ pluginMinify })=>pluginMinify(config.output?.minify)),
|
|
32
27
|
__webpack_require__.e("src_plugins_optimization_plugin_ts").then(__webpack_require__.bind(__webpack_require__, "./src/plugins/optimization.plugin.ts")).then(({ pluginOptimization })=>pluginOptimization()),
|
|
33
28
|
__webpack_require__.e("src_plugins_output_plugin_ts").then(__webpack_require__.bind(__webpack_require__, "./src/plugins/output.plugin.ts")).then(({ pluginOutput })=>pluginOutput(config.output)),
|
|
@@ -42,10 +37,6 @@ export const __webpack_modules__ = {
|
|
|
42
37
|
rsbuildInstance.addPlugins(plugins);
|
|
43
38
|
})
|
|
44
39
|
];
|
|
45
|
-
if ('development' === config.mode) {
|
|
46
|
-
(0, _debug_js__WEBPACK_IMPORTED_MODULE_0__.fF)('apply Rspeedy default development plugins');
|
|
47
|
-
promises.push(applyDefaultDevPlugins(rsbuildInstance, config));
|
|
48
|
-
}
|
|
49
40
|
if ((0, _debug_js__WEBPACK_IMPORTED_MODULE_0__.L1)()) {
|
|
50
41
|
(0, _debug_js__WEBPACK_IMPORTED_MODULE_0__.fF)('apply Rspeedy default debug plugins');
|
|
51
42
|
promises.push(applyDebugPlugins(rsbuildInstance, config));
|
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.8-canary-20250820-f0d483ca",
|
|
4
4
|
"description": "A webpack/rspack-based frontend toolchain for Lynx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"typia": "9.7.1",
|
|
71
71
|
"typia-rspack-plugin": "2.2.1",
|
|
72
72
|
"vitest": "^3.2.4",
|
|
73
|
-
"webpack": "^5.101.
|
|
73
|
+
"webpack": "^5.101.3",
|
|
74
74
|
"@lynx-js/vitest-setup": "0.0.0"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|