@lynx-js/rspeedy-canary 0.10.0-canary-20250704-782a6b3a → 0.10.0
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 +45 -41
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1 -1
- package/dist/src_cli_commands_ts.js +1 -1
- package/dist/src_plugins_inspect_plugin_ts.js +1 -1
- package/dist/src_version_ts.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @lynx-js/rspeedy
|
|
2
2
|
|
|
3
|
-
## 0.10.0
|
|
3
|
+
## 0.10.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
|
|
9
9
|
See [Announcing Rspack 1.4](https://rspack.rs/blog/announcing-1-4) for more details.
|
|
10
10
|
|
|
11
|
+
- Deprecated `output.distPath.intermediate` ([#1154](https://github.com/lynx-family/lynx-stack/pull/1154))
|
|
12
|
+
|
|
13
|
+
This option is never read and will be removed in the future version.
|
|
14
|
+
|
|
11
15
|
## 0.9.11
|
|
12
16
|
|
|
13
17
|
### Patch Changes
|
|
@@ -16,28 +20,28 @@
|
|
|
16
20
|
|
|
17
21
|
```ts
|
|
18
22
|
type InlineChunkTestFunction = (params: {
|
|
19
|
-
size: number
|
|
20
|
-
name: string
|
|
21
|
-
}) => boolean
|
|
23
|
+
size: number
|
|
24
|
+
name: string
|
|
25
|
+
}) => boolean
|
|
22
26
|
|
|
23
|
-
type InlineChunkTest = RegExp | InlineChunkTestFunction
|
|
27
|
+
type InlineChunkTest = RegExp | InlineChunkTestFunction
|
|
24
28
|
|
|
25
29
|
type InlineChunkConfig =
|
|
26
30
|
| boolean
|
|
27
31
|
| InlineChunkTest
|
|
28
|
-
| { enable?: boolean |
|
|
32
|
+
| { enable?: boolean | 'auto', test: InlineChunkTest }
|
|
29
33
|
```
|
|
30
34
|
|
|
31
35
|
```ts
|
|
32
|
-
import { defineConfig } from
|
|
36
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
33
37
|
|
|
34
38
|
export default defineConfig({
|
|
35
39
|
output: {
|
|
36
40
|
inlineScripts: ({ name, size }) => {
|
|
37
|
-
return name.includes(
|
|
41
|
+
return name.includes('foo') && size < 1000
|
|
38
42
|
},
|
|
39
43
|
},
|
|
40
|
-
})
|
|
44
|
+
})
|
|
41
45
|
```
|
|
42
46
|
|
|
43
47
|
- docs: remove chunks: 'all' in comments ([#1168](https://github.com/lynx-family/lynx-stack/pull/1168))
|
|
@@ -80,13 +84,13 @@
|
|
|
80
84
|
example:
|
|
81
85
|
|
|
82
86
|
```js
|
|
83
|
-
import { defineConfig } from
|
|
87
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
84
88
|
|
|
85
89
|
export default defineConfig({
|
|
86
90
|
output: {
|
|
87
91
|
inlineScripts: false,
|
|
88
92
|
},
|
|
89
|
-
})
|
|
93
|
+
})
|
|
90
94
|
```
|
|
91
95
|
|
|
92
96
|
- Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
|
|
@@ -106,12 +110,12 @@
|
|
|
106
110
|
example:
|
|
107
111
|
|
|
108
112
|
```js
|
|
109
|
-
import { defineConfig } from
|
|
113
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
110
114
|
export default defineConfig({
|
|
111
115
|
source: {
|
|
112
|
-
preEntry:
|
|
116
|
+
preEntry: './src/polyfill.ts',
|
|
113
117
|
},
|
|
114
|
-
})
|
|
118
|
+
})
|
|
115
119
|
```
|
|
116
120
|
|
|
117
121
|
- Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
|
|
@@ -122,17 +126,17 @@
|
|
|
122
126
|
|
|
123
127
|
```js
|
|
124
128
|
export const myPlugin = {
|
|
125
|
-
name:
|
|
129
|
+
name: 'my-plugin',
|
|
126
130
|
setup(api) {
|
|
127
|
-
const { callerName } = api.context
|
|
131
|
+
const { callerName } = api.context
|
|
128
132
|
|
|
129
|
-
if (callerName ===
|
|
133
|
+
if (callerName === 'rslib') {
|
|
130
134
|
// ...
|
|
131
|
-
} else if (callerName ===
|
|
135
|
+
} else if (callerName === 'rspeedy') {
|
|
132
136
|
// ...
|
|
133
137
|
}
|
|
134
138
|
},
|
|
135
|
-
}
|
|
139
|
+
}
|
|
136
140
|
```
|
|
137
141
|
|
|
138
142
|
- Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
|
|
@@ -155,7 +159,7 @@
|
|
|
155
159
|
Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
|
|
156
160
|
|
|
157
161
|
```js
|
|
158
|
-
import { defineConfig } from
|
|
162
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
159
163
|
|
|
160
164
|
export default defineConfig({
|
|
161
165
|
tools: {
|
|
@@ -165,7 +169,7 @@
|
|
|
165
169
|
},
|
|
166
170
|
},
|
|
167
171
|
},
|
|
168
|
-
})
|
|
172
|
+
})
|
|
169
173
|
```
|
|
170
174
|
|
|
171
175
|
See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
|
|
@@ -297,12 +301,12 @@
|
|
|
297
301
|
example:
|
|
298
302
|
|
|
299
303
|
```js
|
|
300
|
-
import { defineConfig } from
|
|
304
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
301
305
|
export default defineConfig({
|
|
302
306
|
server: {
|
|
303
|
-
base:
|
|
307
|
+
base: '/dist',
|
|
304
308
|
},
|
|
305
|
-
})
|
|
309
|
+
})
|
|
306
310
|
```
|
|
307
311
|
|
|
308
312
|
- Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
|
|
@@ -355,11 +359,11 @@
|
|
|
355
359
|
You can switch to other tools by using:
|
|
356
360
|
|
|
357
361
|
```js
|
|
358
|
-
import { defineConfig } from
|
|
362
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
359
363
|
import {
|
|
360
364
|
CssMinimizerWebpackPlugin,
|
|
361
365
|
pluginCssMinimizer,
|
|
362
|
-
} from
|
|
366
|
+
} from '@rsbuild/plugin-css-minimizer'
|
|
363
367
|
|
|
364
368
|
export default defineConfig({
|
|
365
369
|
plugins: [
|
|
@@ -372,7 +376,7 @@
|
|
|
372
376
|
},
|
|
373
377
|
}),
|
|
374
378
|
],
|
|
375
|
-
})
|
|
379
|
+
})
|
|
376
380
|
```
|
|
377
381
|
|
|
378
382
|
See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
|
|
@@ -382,8 +386,8 @@
|
|
|
382
386
|
You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
|
|
383
387
|
|
|
384
388
|
```js
|
|
385
|
-
import { defineConfig } from
|
|
386
|
-
import { pluginCssMinimizer } from
|
|
389
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
390
|
+
import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
|
|
387
391
|
|
|
388
392
|
export default defineConfig({
|
|
389
393
|
plugins: [
|
|
@@ -395,7 +399,7 @@
|
|
|
395
399
|
},
|
|
396
400
|
}),
|
|
397
401
|
],
|
|
398
|
-
})
|
|
402
|
+
})
|
|
399
403
|
```
|
|
400
404
|
|
|
401
405
|
## 0.7.1
|
|
@@ -415,7 +419,7 @@
|
|
|
415
419
|
You may turn it off using `output.minify.css: false`:
|
|
416
420
|
|
|
417
421
|
```js
|
|
418
|
-
import { defineConfig } from
|
|
422
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
419
423
|
|
|
420
424
|
export default defineConfig({
|
|
421
425
|
output: {
|
|
@@ -423,18 +427,18 @@
|
|
|
423
427
|
css: false,
|
|
424
428
|
},
|
|
425
429
|
},
|
|
426
|
-
})
|
|
430
|
+
})
|
|
427
431
|
```
|
|
428
432
|
|
|
429
433
|
Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
|
|
430
434
|
|
|
431
435
|
```js
|
|
432
|
-
import { defineConfig } from
|
|
433
|
-
import { pluginCssMinimizer } from
|
|
436
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
437
|
+
import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
|
|
434
438
|
|
|
435
439
|
export default defineConfig({
|
|
436
440
|
plugins: [pluginCssMinimizer()],
|
|
437
|
-
})
|
|
441
|
+
})
|
|
438
442
|
```
|
|
439
443
|
|
|
440
444
|
- 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
|
|
@@ -461,22 +465,22 @@
|
|
|
461
465
|
- The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
|
|
462
466
|
|
|
463
467
|
```js
|
|
464
|
-
import { defineConfig } from
|
|
468
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
465
469
|
|
|
466
470
|
export default defineConfig({
|
|
467
471
|
dev: {
|
|
468
472
|
watchFiles: [
|
|
469
473
|
{
|
|
470
|
-
type:
|
|
471
|
-
paths: [
|
|
474
|
+
type: 'reload-server',
|
|
475
|
+
paths: ['public/**/*.txt'],
|
|
472
476
|
},
|
|
473
477
|
{
|
|
474
|
-
type:
|
|
475
|
-
paths: [
|
|
478
|
+
type: 'reload-page',
|
|
479
|
+
paths: ['public/**/*.json'],
|
|
476
480
|
},
|
|
477
481
|
],
|
|
478
482
|
},
|
|
479
|
-
})
|
|
483
|
+
})
|
|
480
484
|
```
|
|
481
485
|
|
|
482
486
|
- be9b003: Add `source.exclude`.
|
package/dist/index.d.ts
CHANGED
|
@@ -1193,6 +1193,10 @@ export declare interface DistPath extends DistPathConfig {
|
|
|
1193
1193
|
/**
|
|
1194
1194
|
* The output directory of the intermediate files.
|
|
1195
1195
|
*
|
|
1196
|
+
* @deprecated
|
|
1197
|
+
*
|
|
1198
|
+
* This option is never read and will be removed in the future version.
|
|
1199
|
+
*
|
|
1196
1200
|
* @remarks
|
|
1197
1201
|
*
|
|
1198
1202
|
* Default value:
|
package/dist/index.js
CHANGED
|
@@ -112,7 +112,7 @@ var __webpack_modules__ = {
|
|
|
112
112
|
});
|
|
113
113
|
var core_ = __webpack_require__("@rsbuild/core");
|
|
114
114
|
var package_namespaceObject = {
|
|
115
|
-
i8: "0.
|
|
115
|
+
i8: "0.10.0"
|
|
116
116
|
};
|
|
117
117
|
const version = package_namespaceObject.i8;
|
|
118
118
|
const rspackVersion = core_.rspack.rspackVersion;
|
|
@@ -40,7 +40,7 @@ export const __webpack_modules__ = {
|
|
|
40
40
|
});
|
|
41
41
|
var core_ = __webpack_require__("@rsbuild/core");
|
|
42
42
|
var package_namespaceObject = {
|
|
43
|
-
i8: "0.
|
|
43
|
+
i8: "0.10.0"
|
|
44
44
|
};
|
|
45
45
|
const version = package_namespaceObject.i8;
|
|
46
46
|
const rspackVersion = core_.rspack.rspackVersion;
|
|
@@ -27,7 +27,7 @@ export const __webpack_modules__ = {
|
|
|
27
27
|
name: 'lynx:rsbuild:inspect',
|
|
28
28
|
setup (api) {
|
|
29
29
|
api.onBeforeBuild(async ()=>{
|
|
30
|
-
await inspectRspeedyConfig(config, node_path__WEBPACK_IMPORTED_MODULE_1__["default"].join(api.context.distPath,
|
|
30
|
+
await inspectRspeedyConfig(config, node_path__WEBPACK_IMPORTED_MODULE_1__["default"].join(api.context.distPath, _config_output_dist_path_js__WEBPACK_IMPORTED_MODULE_4__.A, 'rspeedy.config.js'), false);
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
};
|
package/dist/src_version_ts.js
CHANGED
|
@@ -10,7 +10,7 @@ export const __webpack_modules__ = {
|
|
|
10
10
|
});
|
|
11
11
|
var core_ = __webpack_require__("@rsbuild/core");
|
|
12
12
|
var package_namespaceObject = {
|
|
13
|
-
i8: "0.
|
|
13
|
+
i8: "0.10.0"
|
|
14
14
|
};
|
|
15
15
|
const version = package_namespaceObject.i8;
|
|
16
16
|
const rspackVersion = core_.rspack.rspackVersion;
|