@lynx-js/rspeedy-canary 0.9.8 → 0.9.9-canary-20250605-c014327a
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 +40 -32
- package/dist/src_config_validate_ts.js +2208 -1873
- package/dist/src_plugins_api_plugin_ts.js +2 -2
- package/dist/src_plugins_emitOnErrors_plugin_ts.js +21 -0
- package/dist/src_plugins_index_ts.js +1 -0
- package/dist/src_plugins_rsdoctor_plugin_ts.js +7 -13
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @lynx-js/rspeedy
|
|
2
2
|
|
|
3
|
+
## 0.9.9-canary-20250605121742-c014327ad0cf599b32d4182d95116b46c35f5fa5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Set `optimization.emitOnErrors` when `DEBUG` is enabled. ([#1000](https://github.com/lynx-family/lynx-stack/pull/1000))
|
|
8
|
+
|
|
9
|
+
This is useful for debugging PrimJS Syntax error.
|
|
10
|
+
|
|
3
11
|
## 0.9.8
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -28,13 +36,13 @@
|
|
|
28
36
|
example:
|
|
29
37
|
|
|
30
38
|
```js
|
|
31
|
-
import { defineConfig } from
|
|
39
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
32
40
|
|
|
33
41
|
export default defineConfig({
|
|
34
42
|
output: {
|
|
35
43
|
inlineScripts: false,
|
|
36
44
|
},
|
|
37
|
-
})
|
|
45
|
+
});
|
|
38
46
|
```
|
|
39
47
|
|
|
40
48
|
- Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
|
|
@@ -54,12 +62,12 @@
|
|
|
54
62
|
example:
|
|
55
63
|
|
|
56
64
|
```js
|
|
57
|
-
import { defineConfig } from
|
|
65
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
58
66
|
export default defineConfig({
|
|
59
67
|
source: {
|
|
60
|
-
preEntry:
|
|
68
|
+
preEntry: "./src/polyfill.ts",
|
|
61
69
|
},
|
|
62
|
-
})
|
|
70
|
+
});
|
|
63
71
|
```
|
|
64
72
|
|
|
65
73
|
- Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
|
|
@@ -70,17 +78,17 @@
|
|
|
70
78
|
|
|
71
79
|
```js
|
|
72
80
|
export const myPlugin = {
|
|
73
|
-
name:
|
|
81
|
+
name: "my-plugin",
|
|
74
82
|
setup(api) {
|
|
75
|
-
const { callerName } = api.context
|
|
83
|
+
const { callerName } = api.context;
|
|
76
84
|
|
|
77
|
-
if (callerName ===
|
|
85
|
+
if (callerName === "rslib") {
|
|
78
86
|
// ...
|
|
79
|
-
} else if (callerName ===
|
|
87
|
+
} else if (callerName === "rspeedy") {
|
|
80
88
|
// ...
|
|
81
89
|
}
|
|
82
90
|
},
|
|
83
|
-
}
|
|
91
|
+
};
|
|
84
92
|
```
|
|
85
93
|
|
|
86
94
|
- Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
|
|
@@ -103,7 +111,7 @@
|
|
|
103
111
|
Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
|
|
104
112
|
|
|
105
113
|
```js
|
|
106
|
-
import { defineConfig } from
|
|
114
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
107
115
|
|
|
108
116
|
export default defineConfig({
|
|
109
117
|
tools: {
|
|
@@ -113,7 +121,7 @@
|
|
|
113
121
|
},
|
|
114
122
|
},
|
|
115
123
|
},
|
|
116
|
-
})
|
|
124
|
+
});
|
|
117
125
|
```
|
|
118
126
|
|
|
119
127
|
See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
|
|
@@ -245,12 +253,12 @@
|
|
|
245
253
|
example:
|
|
246
254
|
|
|
247
255
|
```js
|
|
248
|
-
import { defineConfig } from
|
|
256
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
249
257
|
export default defineConfig({
|
|
250
258
|
server: {
|
|
251
|
-
base:
|
|
259
|
+
base: "/dist",
|
|
252
260
|
},
|
|
253
|
-
})
|
|
261
|
+
});
|
|
254
262
|
```
|
|
255
263
|
|
|
256
264
|
- Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
|
|
@@ -303,11 +311,11 @@
|
|
|
303
311
|
You can switch to other tools by using:
|
|
304
312
|
|
|
305
313
|
```js
|
|
306
|
-
import { defineConfig } from
|
|
314
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
307
315
|
import {
|
|
308
316
|
CssMinimizerWebpackPlugin,
|
|
309
317
|
pluginCssMinimizer,
|
|
310
|
-
} from
|
|
318
|
+
} from "@rsbuild/plugin-css-minimizer";
|
|
311
319
|
|
|
312
320
|
export default defineConfig({
|
|
313
321
|
plugins: [
|
|
@@ -320,7 +328,7 @@
|
|
|
320
328
|
},
|
|
321
329
|
}),
|
|
322
330
|
],
|
|
323
|
-
})
|
|
331
|
+
});
|
|
324
332
|
```
|
|
325
333
|
|
|
326
334
|
See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
|
|
@@ -330,8 +338,8 @@
|
|
|
330
338
|
You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
|
|
331
339
|
|
|
332
340
|
```js
|
|
333
|
-
import { defineConfig } from
|
|
334
|
-
import { pluginCssMinimizer } from
|
|
341
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
342
|
+
import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
|
|
335
343
|
|
|
336
344
|
export default defineConfig({
|
|
337
345
|
plugins: [
|
|
@@ -343,7 +351,7 @@
|
|
|
343
351
|
},
|
|
344
352
|
}),
|
|
345
353
|
],
|
|
346
|
-
})
|
|
354
|
+
});
|
|
347
355
|
```
|
|
348
356
|
|
|
349
357
|
## 0.7.1
|
|
@@ -363,7 +371,7 @@
|
|
|
363
371
|
You may turn it off using `output.minify.css: false`:
|
|
364
372
|
|
|
365
373
|
```js
|
|
366
|
-
import { defineConfig } from
|
|
374
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
367
375
|
|
|
368
376
|
export default defineConfig({
|
|
369
377
|
output: {
|
|
@@ -371,18 +379,18 @@
|
|
|
371
379
|
css: false,
|
|
372
380
|
},
|
|
373
381
|
},
|
|
374
|
-
})
|
|
382
|
+
});
|
|
375
383
|
```
|
|
376
384
|
|
|
377
385
|
Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
|
|
378
386
|
|
|
379
387
|
```js
|
|
380
|
-
import { defineConfig } from
|
|
381
|
-
import { pluginCssMinimizer } from
|
|
388
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
389
|
+
import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
|
|
382
390
|
|
|
383
391
|
export default defineConfig({
|
|
384
392
|
plugins: [pluginCssMinimizer()],
|
|
385
|
-
})
|
|
393
|
+
});
|
|
386
394
|
```
|
|
387
395
|
|
|
388
396
|
- 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
|
|
@@ -409,22 +417,22 @@
|
|
|
409
417
|
- The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
|
|
410
418
|
|
|
411
419
|
```js
|
|
412
|
-
import { defineConfig } from
|
|
420
|
+
import { defineConfig } from "@lynx-js/rspeedy";
|
|
413
421
|
|
|
414
422
|
export default defineConfig({
|
|
415
423
|
dev: {
|
|
416
424
|
watchFiles: [
|
|
417
425
|
{
|
|
418
|
-
type:
|
|
419
|
-
paths: [
|
|
426
|
+
type: "reload-server",
|
|
427
|
+
paths: ["public/**/*.txt"],
|
|
420
428
|
},
|
|
421
429
|
{
|
|
422
|
-
type:
|
|
423
|
-
paths: [
|
|
430
|
+
type: "reload-page",
|
|
431
|
+
paths: ["public/**/*.json"],
|
|
424
432
|
},
|
|
425
433
|
],
|
|
426
434
|
},
|
|
427
|
-
})
|
|
435
|
+
});
|
|
428
436
|
```
|
|
429
437
|
|
|
430
438
|
- be9b003: Add `source.exclude`.
|