@lynx-js/rspeedy-canary 0.11.0-canary-20250830-d7d0b9b9 → 0.11.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 +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 +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @lynx-js/rspeedy
|
|
2
2
|
|
|
3
|
-
## 0.11.0
|
|
3
|
+
## 0.11.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
- Support `rspeedy build --watch` ([#1579](https://github.com/lynx-family/lynx-stack/pull/1579))
|
|
22
22
|
|
|
23
23
|
- Updated dependencies [[`d7d0b9b`](https://github.com/lynx-family/lynx-stack/commit/d7d0b9b94e219cd057c935d723775c82b10559a6), [`1952fc1`](https://github.com/lynx-family/lynx-stack/commit/1952fc1557e5abbdbdf4a2073fd3b6f64dd32c3c)]:
|
|
24
|
-
- @lynx-js/cache-events-webpack-plugin@0.0.2
|
|
25
|
-
- @lynx-js/chunk-loading-webpack-plugin@0.3.2
|
|
24
|
+
- @lynx-js/cache-events-webpack-plugin@0.0.2
|
|
25
|
+
- @lynx-js/chunk-loading-webpack-plugin@0.3.2
|
|
26
26
|
|
|
27
27
|
## 0.10.8
|
|
28
28
|
|
|
@@ -117,28 +117,28 @@
|
|
|
117
117
|
|
|
118
118
|
```ts
|
|
119
119
|
type InlineChunkTestFunction = (params: {
|
|
120
|
-
size: number
|
|
121
|
-
name: string
|
|
122
|
-
}) => boolean
|
|
120
|
+
size: number
|
|
121
|
+
name: string
|
|
122
|
+
}) => boolean
|
|
123
123
|
|
|
124
|
-
type InlineChunkTest = RegExp | InlineChunkTestFunction
|
|
124
|
+
type InlineChunkTest = RegExp | InlineChunkTestFunction
|
|
125
125
|
|
|
126
126
|
type InlineChunkConfig =
|
|
127
127
|
| boolean
|
|
128
128
|
| InlineChunkTest
|
|
129
|
-
| { enable?: boolean |
|
|
129
|
+
| { enable?: boolean | 'auto', test: InlineChunkTest }
|
|
130
130
|
```
|
|
131
131
|
|
|
132
132
|
```ts
|
|
133
|
-
import { defineConfig } from
|
|
133
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
134
134
|
|
|
135
135
|
export default defineConfig({
|
|
136
136
|
output: {
|
|
137
137
|
inlineScripts: ({ name, size }) => {
|
|
138
|
-
return name.includes(
|
|
138
|
+
return name.includes('foo') && size < 1000
|
|
139
139
|
},
|
|
140
140
|
},
|
|
141
|
-
})
|
|
141
|
+
})
|
|
142
142
|
```
|
|
143
143
|
|
|
144
144
|
- docs: remove chunks: 'all' in comments ([#1168](https://github.com/lynx-family/lynx-stack/pull/1168))
|
|
@@ -181,13 +181,13 @@
|
|
|
181
181
|
example:
|
|
182
182
|
|
|
183
183
|
```js
|
|
184
|
-
import { defineConfig } from
|
|
184
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
185
185
|
|
|
186
186
|
export default defineConfig({
|
|
187
187
|
output: {
|
|
188
188
|
inlineScripts: false,
|
|
189
189
|
},
|
|
190
|
-
})
|
|
190
|
+
})
|
|
191
191
|
```
|
|
192
192
|
|
|
193
193
|
- Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
|
|
@@ -207,12 +207,12 @@
|
|
|
207
207
|
example:
|
|
208
208
|
|
|
209
209
|
```js
|
|
210
|
-
import { defineConfig } from
|
|
210
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
211
211
|
export default defineConfig({
|
|
212
212
|
source: {
|
|
213
|
-
preEntry:
|
|
213
|
+
preEntry: './src/polyfill.ts',
|
|
214
214
|
},
|
|
215
|
-
})
|
|
215
|
+
})
|
|
216
216
|
```
|
|
217
217
|
|
|
218
218
|
- Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
|
|
@@ -223,17 +223,17 @@
|
|
|
223
223
|
|
|
224
224
|
```js
|
|
225
225
|
export const myPlugin = {
|
|
226
|
-
name:
|
|
226
|
+
name: 'my-plugin',
|
|
227
227
|
setup(api) {
|
|
228
|
-
const { callerName } = api.context
|
|
228
|
+
const { callerName } = api.context
|
|
229
229
|
|
|
230
|
-
if (callerName ===
|
|
230
|
+
if (callerName === 'rslib') {
|
|
231
231
|
// ...
|
|
232
|
-
} else if (callerName ===
|
|
232
|
+
} else if (callerName === 'rspeedy') {
|
|
233
233
|
// ...
|
|
234
234
|
}
|
|
235
235
|
},
|
|
236
|
-
}
|
|
236
|
+
}
|
|
237
237
|
```
|
|
238
238
|
|
|
239
239
|
- Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
|
|
@@ -256,7 +256,7 @@
|
|
|
256
256
|
Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
|
|
257
257
|
|
|
258
258
|
```js
|
|
259
|
-
import { defineConfig } from
|
|
259
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
260
260
|
|
|
261
261
|
export default defineConfig({
|
|
262
262
|
tools: {
|
|
@@ -266,7 +266,7 @@
|
|
|
266
266
|
},
|
|
267
267
|
},
|
|
268
268
|
},
|
|
269
|
-
})
|
|
269
|
+
})
|
|
270
270
|
```
|
|
271
271
|
|
|
272
272
|
See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
|
|
@@ -398,12 +398,12 @@
|
|
|
398
398
|
example:
|
|
399
399
|
|
|
400
400
|
```js
|
|
401
|
-
import { defineConfig } from
|
|
401
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
402
402
|
export default defineConfig({
|
|
403
403
|
server: {
|
|
404
|
-
base:
|
|
404
|
+
base: '/dist',
|
|
405
405
|
},
|
|
406
|
-
})
|
|
406
|
+
})
|
|
407
407
|
```
|
|
408
408
|
|
|
409
409
|
- Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
|
|
@@ -456,11 +456,11 @@
|
|
|
456
456
|
You can switch to other tools by using:
|
|
457
457
|
|
|
458
458
|
```js
|
|
459
|
-
import { defineConfig } from
|
|
459
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
460
460
|
import {
|
|
461
461
|
CssMinimizerWebpackPlugin,
|
|
462
462
|
pluginCssMinimizer,
|
|
463
|
-
} from
|
|
463
|
+
} from '@rsbuild/plugin-css-minimizer'
|
|
464
464
|
|
|
465
465
|
export default defineConfig({
|
|
466
466
|
plugins: [
|
|
@@ -473,7 +473,7 @@
|
|
|
473
473
|
},
|
|
474
474
|
}),
|
|
475
475
|
],
|
|
476
|
-
})
|
|
476
|
+
})
|
|
477
477
|
```
|
|
478
478
|
|
|
479
479
|
See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
|
|
@@ -483,8 +483,8 @@
|
|
|
483
483
|
You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
|
|
484
484
|
|
|
485
485
|
```js
|
|
486
|
-
import { defineConfig } from
|
|
487
|
-
import { pluginCssMinimizer } from
|
|
486
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
487
|
+
import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
|
|
488
488
|
|
|
489
489
|
export default defineConfig({
|
|
490
490
|
plugins: [
|
|
@@ -496,7 +496,7 @@
|
|
|
496
496
|
},
|
|
497
497
|
}),
|
|
498
498
|
],
|
|
499
|
-
})
|
|
499
|
+
})
|
|
500
500
|
```
|
|
501
501
|
|
|
502
502
|
## 0.7.1
|
|
@@ -516,7 +516,7 @@
|
|
|
516
516
|
You may turn it off using `output.minify.css: false`:
|
|
517
517
|
|
|
518
518
|
```js
|
|
519
|
-
import { defineConfig } from
|
|
519
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
520
520
|
|
|
521
521
|
export default defineConfig({
|
|
522
522
|
output: {
|
|
@@ -524,18 +524,18 @@
|
|
|
524
524
|
css: false,
|
|
525
525
|
},
|
|
526
526
|
},
|
|
527
|
-
})
|
|
527
|
+
})
|
|
528
528
|
```
|
|
529
529
|
|
|
530
530
|
Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
|
|
531
531
|
|
|
532
532
|
```js
|
|
533
|
-
import { defineConfig } from
|
|
534
|
-
import { pluginCssMinimizer } from
|
|
533
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
534
|
+
import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
|
|
535
535
|
|
|
536
536
|
export default defineConfig({
|
|
537
537
|
plugins: [pluginCssMinimizer()],
|
|
538
|
-
})
|
|
538
|
+
})
|
|
539
539
|
```
|
|
540
540
|
|
|
541
541
|
- 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
|
|
@@ -562,22 +562,22 @@
|
|
|
562
562
|
- The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
|
|
563
563
|
|
|
564
564
|
```js
|
|
565
|
-
import { defineConfig } from
|
|
565
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
566
566
|
|
|
567
567
|
export default defineConfig({
|
|
568
568
|
dev: {
|
|
569
569
|
watchFiles: [
|
|
570
570
|
{
|
|
571
|
-
type:
|
|
572
|
-
paths: [
|
|
571
|
+
type: 'reload-server',
|
|
572
|
+
paths: ['public/**/*.txt'],
|
|
573
573
|
},
|
|
574
574
|
{
|
|
575
|
-
type:
|
|
576
|
-
paths: [
|
|
575
|
+
type: 'reload-page',
|
|
576
|
+
paths: ['public/**/*.json'],
|
|
577
577
|
},
|
|
578
578
|
],
|
|
579
579
|
},
|
|
580
|
-
})
|
|
580
|
+
})
|
|
581
581
|
```
|
|
582
582
|
|
|
583
583
|
- 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.
|
|
111
|
+
rE: "0.11.0"
|
|
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.
|
|
44
|
+
rE: "0.11.0"
|
|
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.
|
|
14
|
+
rE: "0.11.0"
|
|
15
15
|
};
|
|
16
16
|
const version = package_namespaceObject.rE;
|
|
17
17
|
const rspackVersion = core_.rspack.rspackVersion;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/rspeedy-canary",
|
|
3
|
-
"version": "0.11.0
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "A webpack/rspack-based frontend toolchain for Lynx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"README.md"
|
|
49
49
|
],
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@lynx-js/cache-events-webpack-plugin": "npm:@lynx-js/cache-events-webpack-plugin-canary@0.0.2
|
|
52
|
-
"@lynx-js/chunk-loading-webpack-plugin": "npm:@lynx-js/chunk-loading-webpack-plugin-canary@0.3.2
|
|
51
|
+
"@lynx-js/cache-events-webpack-plugin": "npm:@lynx-js/cache-events-webpack-plugin-canary@0.0.2",
|
|
52
|
+
"@lynx-js/chunk-loading-webpack-plugin": "npm:@lynx-js/chunk-loading-webpack-plugin-canary@0.3.2",
|
|
53
53
|
"@lynx-js/webpack-dev-transport": "npm:@lynx-js/webpack-dev-transport-canary@0.2.0",
|
|
54
54
|
"@lynx-js/websocket": "npm:@lynx-js/websocket-canary@0.0.4",
|
|
55
55
|
"@rsbuild/core": "1.5.0",
|