@lynx-js/rspeedy-canary 0.10.5-canary-20250803-e3e395d8 → 0.10.5
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 +41 -41
- package/dist/index.js +1 -1
- package/dist/src_cli_commands_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.5
|
|
3
|
+
## 0.10.5
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -55,28 +55,28 @@
|
|
|
55
55
|
|
|
56
56
|
```ts
|
|
57
57
|
type InlineChunkTestFunction = (params: {
|
|
58
|
-
size: number
|
|
59
|
-
name: string
|
|
60
|
-
}) => boolean
|
|
58
|
+
size: number
|
|
59
|
+
name: string
|
|
60
|
+
}) => boolean
|
|
61
61
|
|
|
62
|
-
type InlineChunkTest = RegExp | InlineChunkTestFunction
|
|
62
|
+
type InlineChunkTest = RegExp | InlineChunkTestFunction
|
|
63
63
|
|
|
64
64
|
type InlineChunkConfig =
|
|
65
65
|
| boolean
|
|
66
66
|
| InlineChunkTest
|
|
67
|
-
| { enable?: boolean |
|
|
67
|
+
| { enable?: boolean | 'auto', test: InlineChunkTest }
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
```ts
|
|
71
|
-
import { defineConfig } from
|
|
71
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
72
72
|
|
|
73
73
|
export default defineConfig({
|
|
74
74
|
output: {
|
|
75
75
|
inlineScripts: ({ name, size }) => {
|
|
76
|
-
return name.includes(
|
|
76
|
+
return name.includes('foo') && size < 1000
|
|
77
77
|
},
|
|
78
78
|
},
|
|
79
|
-
})
|
|
79
|
+
})
|
|
80
80
|
```
|
|
81
81
|
|
|
82
82
|
- docs: remove chunks: 'all' in comments ([#1168](https://github.com/lynx-family/lynx-stack/pull/1168))
|
|
@@ -119,13 +119,13 @@
|
|
|
119
119
|
example:
|
|
120
120
|
|
|
121
121
|
```js
|
|
122
|
-
import { defineConfig } from
|
|
122
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
123
123
|
|
|
124
124
|
export default defineConfig({
|
|
125
125
|
output: {
|
|
126
126
|
inlineScripts: false,
|
|
127
127
|
},
|
|
128
|
-
})
|
|
128
|
+
})
|
|
129
129
|
```
|
|
130
130
|
|
|
131
131
|
- Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
|
|
@@ -145,12 +145,12 @@
|
|
|
145
145
|
example:
|
|
146
146
|
|
|
147
147
|
```js
|
|
148
|
-
import { defineConfig } from
|
|
148
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
149
149
|
export default defineConfig({
|
|
150
150
|
source: {
|
|
151
|
-
preEntry:
|
|
151
|
+
preEntry: './src/polyfill.ts',
|
|
152
152
|
},
|
|
153
|
-
})
|
|
153
|
+
})
|
|
154
154
|
```
|
|
155
155
|
|
|
156
156
|
- Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
|
|
@@ -161,17 +161,17 @@
|
|
|
161
161
|
|
|
162
162
|
```js
|
|
163
163
|
export const myPlugin = {
|
|
164
|
-
name:
|
|
164
|
+
name: 'my-plugin',
|
|
165
165
|
setup(api) {
|
|
166
|
-
const { callerName } = api.context
|
|
166
|
+
const { callerName } = api.context
|
|
167
167
|
|
|
168
|
-
if (callerName ===
|
|
168
|
+
if (callerName === 'rslib') {
|
|
169
169
|
// ...
|
|
170
|
-
} else if (callerName ===
|
|
170
|
+
} else if (callerName === 'rspeedy') {
|
|
171
171
|
// ...
|
|
172
172
|
}
|
|
173
173
|
},
|
|
174
|
-
}
|
|
174
|
+
}
|
|
175
175
|
```
|
|
176
176
|
|
|
177
177
|
- Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
|
|
195
195
|
|
|
196
196
|
```js
|
|
197
|
-
import { defineConfig } from
|
|
197
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
198
198
|
|
|
199
199
|
export default defineConfig({
|
|
200
200
|
tools: {
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
},
|
|
205
205
|
},
|
|
206
206
|
},
|
|
207
|
-
})
|
|
207
|
+
})
|
|
208
208
|
```
|
|
209
209
|
|
|
210
210
|
See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
|
|
@@ -336,12 +336,12 @@
|
|
|
336
336
|
example:
|
|
337
337
|
|
|
338
338
|
```js
|
|
339
|
-
import { defineConfig } from
|
|
339
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
340
340
|
export default defineConfig({
|
|
341
341
|
server: {
|
|
342
|
-
base:
|
|
342
|
+
base: '/dist',
|
|
343
343
|
},
|
|
344
|
-
})
|
|
344
|
+
})
|
|
345
345
|
```
|
|
346
346
|
|
|
347
347
|
- Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
|
|
@@ -394,11 +394,11 @@
|
|
|
394
394
|
You can switch to other tools by using:
|
|
395
395
|
|
|
396
396
|
```js
|
|
397
|
-
import { defineConfig } from
|
|
397
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
398
398
|
import {
|
|
399
399
|
CssMinimizerWebpackPlugin,
|
|
400
400
|
pluginCssMinimizer,
|
|
401
|
-
} from
|
|
401
|
+
} from '@rsbuild/plugin-css-minimizer'
|
|
402
402
|
|
|
403
403
|
export default defineConfig({
|
|
404
404
|
plugins: [
|
|
@@ -411,7 +411,7 @@
|
|
|
411
411
|
},
|
|
412
412
|
}),
|
|
413
413
|
],
|
|
414
|
-
})
|
|
414
|
+
})
|
|
415
415
|
```
|
|
416
416
|
|
|
417
417
|
See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
|
|
@@ -421,8 +421,8 @@
|
|
|
421
421
|
You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
|
|
422
422
|
|
|
423
423
|
```js
|
|
424
|
-
import { defineConfig } from
|
|
425
|
-
import { pluginCssMinimizer } from
|
|
424
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
425
|
+
import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
|
|
426
426
|
|
|
427
427
|
export default defineConfig({
|
|
428
428
|
plugins: [
|
|
@@ -434,7 +434,7 @@
|
|
|
434
434
|
},
|
|
435
435
|
}),
|
|
436
436
|
],
|
|
437
|
-
})
|
|
437
|
+
})
|
|
438
438
|
```
|
|
439
439
|
|
|
440
440
|
## 0.7.1
|
|
@@ -454,7 +454,7 @@
|
|
|
454
454
|
You may turn it off using `output.minify.css: false`:
|
|
455
455
|
|
|
456
456
|
```js
|
|
457
|
-
import { defineConfig } from
|
|
457
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
458
458
|
|
|
459
459
|
export default defineConfig({
|
|
460
460
|
output: {
|
|
@@ -462,18 +462,18 @@
|
|
|
462
462
|
css: false,
|
|
463
463
|
},
|
|
464
464
|
},
|
|
465
|
-
})
|
|
465
|
+
})
|
|
466
466
|
```
|
|
467
467
|
|
|
468
468
|
Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
|
|
469
469
|
|
|
470
470
|
```js
|
|
471
|
-
import { defineConfig } from
|
|
472
|
-
import { pluginCssMinimizer } from
|
|
471
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
472
|
+
import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
|
|
473
473
|
|
|
474
474
|
export default defineConfig({
|
|
475
475
|
plugins: [pluginCssMinimizer()],
|
|
476
|
-
})
|
|
476
|
+
})
|
|
477
477
|
```
|
|
478
478
|
|
|
479
479
|
- 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
|
|
@@ -500,22 +500,22 @@
|
|
|
500
500
|
- The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
|
|
501
501
|
|
|
502
502
|
```js
|
|
503
|
-
import { defineConfig } from
|
|
503
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
504
504
|
|
|
505
505
|
export default defineConfig({
|
|
506
506
|
dev: {
|
|
507
507
|
watchFiles: [
|
|
508
508
|
{
|
|
509
|
-
type:
|
|
510
|
-
paths: [
|
|
509
|
+
type: 'reload-server',
|
|
510
|
+
paths: ['public/**/*.txt'],
|
|
511
511
|
},
|
|
512
512
|
{
|
|
513
|
-
type:
|
|
514
|
-
paths: [
|
|
513
|
+
type: 'reload-page',
|
|
514
|
+
paths: ['public/**/*.json'],
|
|
515
515
|
},
|
|
516
516
|
],
|
|
517
517
|
},
|
|
518
|
-
})
|
|
518
|
+
})
|
|
519
519
|
```
|
|
520
520
|
|
|
521
521
|
- be9b003: Add `source.exclude`.
|
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.10.
|
|
115
|
+
i8: "0.10.5"
|
|
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.10.
|
|
43
|
+
i8: "0.10.5"
|
|
44
44
|
};
|
|
45
45
|
const version = package_namespaceObject.i8;
|
|
46
46
|
const rspackVersion = core_.rspack.rspackVersion;
|
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.10.
|
|
13
|
+
i8: "0.10.5"
|
|
14
14
|
};
|
|
15
15
|
const version = package_namespaceObject.i8;
|
|
16
16
|
const rspackVersion = core_.rspack.rspackVersion;
|