@lynx-js/rspeedy-canary 0.11.1-canary-20250905-ebb01775 → 0.11.1
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 +43 -43
- 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.11.1
|
|
3
|
+
## 0.11.1
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
- Add `output.dataUriLimit.*` for fine-grained control of asset inlining. ([#1648](https://github.com/lynx-family/lynx-stack/pull/1648))
|
|
12
12
|
|
|
13
13
|
```js
|
|
14
|
-
import { defineConfig } from
|
|
14
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
15
15
|
|
|
16
16
|
export default defineConfig({
|
|
17
17
|
output: {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
media: 0,
|
|
21
21
|
},
|
|
22
22
|
},
|
|
23
|
-
})
|
|
23
|
+
})
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
## 0.11.0
|
|
@@ -140,28 +140,28 @@
|
|
|
140
140
|
|
|
141
141
|
```ts
|
|
142
142
|
type InlineChunkTestFunction = (params: {
|
|
143
|
-
size: number
|
|
144
|
-
name: string
|
|
145
|
-
}) => boolean
|
|
143
|
+
size: number
|
|
144
|
+
name: string
|
|
145
|
+
}) => boolean
|
|
146
146
|
|
|
147
|
-
type InlineChunkTest = RegExp | InlineChunkTestFunction
|
|
147
|
+
type InlineChunkTest = RegExp | InlineChunkTestFunction
|
|
148
148
|
|
|
149
149
|
type InlineChunkConfig =
|
|
150
150
|
| boolean
|
|
151
151
|
| InlineChunkTest
|
|
152
|
-
| { enable?: boolean |
|
|
152
|
+
| { enable?: boolean | 'auto', test: InlineChunkTest }
|
|
153
153
|
```
|
|
154
154
|
|
|
155
155
|
```ts
|
|
156
|
-
import { defineConfig } from
|
|
156
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
157
157
|
|
|
158
158
|
export default defineConfig({
|
|
159
159
|
output: {
|
|
160
160
|
inlineScripts: ({ name, size }) => {
|
|
161
|
-
return name.includes(
|
|
161
|
+
return name.includes('foo') && size < 1000
|
|
162
162
|
},
|
|
163
163
|
},
|
|
164
|
-
})
|
|
164
|
+
})
|
|
165
165
|
```
|
|
166
166
|
|
|
167
167
|
- docs: remove chunks: 'all' in comments ([#1168](https://github.com/lynx-family/lynx-stack/pull/1168))
|
|
@@ -204,13 +204,13 @@
|
|
|
204
204
|
example:
|
|
205
205
|
|
|
206
206
|
```js
|
|
207
|
-
import { defineConfig } from
|
|
207
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
208
208
|
|
|
209
209
|
export default defineConfig({
|
|
210
210
|
output: {
|
|
211
211
|
inlineScripts: false,
|
|
212
212
|
},
|
|
213
|
-
})
|
|
213
|
+
})
|
|
214
214
|
```
|
|
215
215
|
|
|
216
216
|
- Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
|
|
@@ -230,12 +230,12 @@
|
|
|
230
230
|
example:
|
|
231
231
|
|
|
232
232
|
```js
|
|
233
|
-
import { defineConfig } from
|
|
233
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
234
234
|
export default defineConfig({
|
|
235
235
|
source: {
|
|
236
|
-
preEntry:
|
|
236
|
+
preEntry: './src/polyfill.ts',
|
|
237
237
|
},
|
|
238
|
-
})
|
|
238
|
+
})
|
|
239
239
|
```
|
|
240
240
|
|
|
241
241
|
- Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
|
|
@@ -246,17 +246,17 @@
|
|
|
246
246
|
|
|
247
247
|
```js
|
|
248
248
|
export const myPlugin = {
|
|
249
|
-
name:
|
|
249
|
+
name: 'my-plugin',
|
|
250
250
|
setup(api) {
|
|
251
|
-
const { callerName } = api.context
|
|
251
|
+
const { callerName } = api.context
|
|
252
252
|
|
|
253
|
-
if (callerName ===
|
|
253
|
+
if (callerName === 'rslib') {
|
|
254
254
|
// ...
|
|
255
|
-
} else if (callerName ===
|
|
255
|
+
} else if (callerName === 'rspeedy') {
|
|
256
256
|
// ...
|
|
257
257
|
}
|
|
258
258
|
},
|
|
259
|
-
}
|
|
259
|
+
}
|
|
260
260
|
```
|
|
261
261
|
|
|
262
262
|
- Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
|
|
280
280
|
|
|
281
281
|
```js
|
|
282
|
-
import { defineConfig } from
|
|
282
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
283
283
|
|
|
284
284
|
export default defineConfig({
|
|
285
285
|
tools: {
|
|
@@ -289,7 +289,7 @@
|
|
|
289
289
|
},
|
|
290
290
|
},
|
|
291
291
|
},
|
|
292
|
-
})
|
|
292
|
+
})
|
|
293
293
|
```
|
|
294
294
|
|
|
295
295
|
See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
|
|
@@ -421,12 +421,12 @@
|
|
|
421
421
|
example:
|
|
422
422
|
|
|
423
423
|
```js
|
|
424
|
-
import { defineConfig } from
|
|
424
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
425
425
|
export default defineConfig({
|
|
426
426
|
server: {
|
|
427
|
-
base:
|
|
427
|
+
base: '/dist',
|
|
428
428
|
},
|
|
429
|
-
})
|
|
429
|
+
})
|
|
430
430
|
```
|
|
431
431
|
|
|
432
432
|
- Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
|
|
@@ -479,11 +479,11 @@
|
|
|
479
479
|
You can switch to other tools by using:
|
|
480
480
|
|
|
481
481
|
```js
|
|
482
|
-
import { defineConfig } from
|
|
482
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
483
483
|
import {
|
|
484
484
|
CssMinimizerWebpackPlugin,
|
|
485
485
|
pluginCssMinimizer,
|
|
486
|
-
} from
|
|
486
|
+
} from '@rsbuild/plugin-css-minimizer'
|
|
487
487
|
|
|
488
488
|
export default defineConfig({
|
|
489
489
|
plugins: [
|
|
@@ -496,7 +496,7 @@
|
|
|
496
496
|
},
|
|
497
497
|
}),
|
|
498
498
|
],
|
|
499
|
-
})
|
|
499
|
+
})
|
|
500
500
|
```
|
|
501
501
|
|
|
502
502
|
See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
|
|
@@ -506,8 +506,8 @@
|
|
|
506
506
|
You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
|
|
507
507
|
|
|
508
508
|
```js
|
|
509
|
-
import { defineConfig } from
|
|
510
|
-
import { pluginCssMinimizer } from
|
|
509
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
510
|
+
import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
|
|
511
511
|
|
|
512
512
|
export default defineConfig({
|
|
513
513
|
plugins: [
|
|
@@ -519,7 +519,7 @@
|
|
|
519
519
|
},
|
|
520
520
|
}),
|
|
521
521
|
],
|
|
522
|
-
})
|
|
522
|
+
})
|
|
523
523
|
```
|
|
524
524
|
|
|
525
525
|
## 0.7.1
|
|
@@ -539,7 +539,7 @@
|
|
|
539
539
|
You may turn it off using `output.minify.css: false`:
|
|
540
540
|
|
|
541
541
|
```js
|
|
542
|
-
import { defineConfig } from
|
|
542
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
543
543
|
|
|
544
544
|
export default defineConfig({
|
|
545
545
|
output: {
|
|
@@ -547,18 +547,18 @@
|
|
|
547
547
|
css: false,
|
|
548
548
|
},
|
|
549
549
|
},
|
|
550
|
-
})
|
|
550
|
+
})
|
|
551
551
|
```
|
|
552
552
|
|
|
553
553
|
Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
|
|
554
554
|
|
|
555
555
|
```js
|
|
556
|
-
import { defineConfig } from
|
|
557
|
-
import { pluginCssMinimizer } from
|
|
556
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
557
|
+
import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
|
|
558
558
|
|
|
559
559
|
export default defineConfig({
|
|
560
560
|
plugins: [pluginCssMinimizer()],
|
|
561
|
-
})
|
|
561
|
+
})
|
|
562
562
|
```
|
|
563
563
|
|
|
564
564
|
- 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
|
|
@@ -585,22 +585,22 @@
|
|
|
585
585
|
- The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
|
|
586
586
|
|
|
587
587
|
```js
|
|
588
|
-
import { defineConfig } from
|
|
588
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
589
589
|
|
|
590
590
|
export default defineConfig({
|
|
591
591
|
dev: {
|
|
592
592
|
watchFiles: [
|
|
593
593
|
{
|
|
594
|
-
type:
|
|
595
|
-
paths: [
|
|
594
|
+
type: 'reload-server',
|
|
595
|
+
paths: ['public/**/*.txt'],
|
|
596
596
|
},
|
|
597
597
|
{
|
|
598
|
-
type:
|
|
599
|
-
paths: [
|
|
598
|
+
type: 'reload-page',
|
|
599
|
+
paths: ['public/**/*.json'],
|
|
600
600
|
},
|
|
601
601
|
],
|
|
602
602
|
},
|
|
603
|
-
})
|
|
603
|
+
})
|
|
604
604
|
```
|
|
605
605
|
|
|
606
606
|
- be9b003: Add `source.exclude`.
|
package/dist/index.js
CHANGED
|
@@ -108,7 +108,7 @@ var __webpack_modules__ = {
|
|
|
108
108
|
});
|
|
109
109
|
var core_ = __webpack_require__("@rsbuild/core");
|
|
110
110
|
var package_namespaceObject = {
|
|
111
|
-
rE: "0.11.
|
|
111
|
+
rE: "0.11.1"
|
|
112
112
|
};
|
|
113
113
|
const version = package_namespaceObject.rE;
|
|
114
114
|
const rspackVersion = core_.rspack.rspackVersion;
|
|
@@ -41,7 +41,7 @@ export const __webpack_modules__ = {
|
|
|
41
41
|
});
|
|
42
42
|
var core_ = __webpack_require__("@rsbuild/core");
|
|
43
43
|
var package_namespaceObject = {
|
|
44
|
-
rE: "0.11.
|
|
44
|
+
rE: "0.11.1"
|
|
45
45
|
};
|
|
46
46
|
const version = package_namespaceObject.rE;
|
|
47
47
|
const rspackVersion = core_.rspack.rspackVersion;
|
package/dist/src_version_ts.js
CHANGED
|
@@ -11,7 +11,7 @@ export const __webpack_modules__ = {
|
|
|
11
11
|
});
|
|
12
12
|
var core_ = __webpack_require__("@rsbuild/core");
|
|
13
13
|
var package_namespaceObject = {
|
|
14
|
-
rE: "0.11.
|
|
14
|
+
rE: "0.11.1"
|
|
15
15
|
};
|
|
16
16
|
const version = package_namespaceObject.rE;
|
|
17
17
|
const rspackVersion = core_.rspack.rspackVersion;
|