@lynx-js/rspeedy-canary 0.9.8-canary-20250531-f65eeebe → 0.9.8
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 +33 -33
- 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.9.8
|
|
3
|
+
## 0.9.8
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
example:
|
|
29
29
|
|
|
30
30
|
```js
|
|
31
|
-
import { defineConfig } from
|
|
31
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
32
32
|
|
|
33
33
|
export default defineConfig({
|
|
34
34
|
output: {
|
|
35
35
|
inlineScripts: false,
|
|
36
36
|
},
|
|
37
|
-
})
|
|
37
|
+
})
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
- Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
example:
|
|
55
55
|
|
|
56
56
|
```js
|
|
57
|
-
import { defineConfig } from
|
|
57
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
58
58
|
export default defineConfig({
|
|
59
59
|
source: {
|
|
60
|
-
preEntry:
|
|
60
|
+
preEntry: './src/polyfill.ts',
|
|
61
61
|
},
|
|
62
|
-
})
|
|
62
|
+
})
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
- Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
|
|
@@ -70,17 +70,17 @@
|
|
|
70
70
|
|
|
71
71
|
```js
|
|
72
72
|
export const myPlugin = {
|
|
73
|
-
name:
|
|
73
|
+
name: 'my-plugin',
|
|
74
74
|
setup(api) {
|
|
75
|
-
const { callerName } = api.context
|
|
75
|
+
const { callerName } = api.context
|
|
76
76
|
|
|
77
|
-
if (callerName ===
|
|
77
|
+
if (callerName === 'rslib') {
|
|
78
78
|
// ...
|
|
79
|
-
} else if (callerName ===
|
|
79
|
+
} else if (callerName === 'rspeedy') {
|
|
80
80
|
// ...
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
|
-
}
|
|
83
|
+
}
|
|
84
84
|
```
|
|
85
85
|
|
|
86
86
|
- Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
|
|
104
104
|
|
|
105
105
|
```js
|
|
106
|
-
import { defineConfig } from
|
|
106
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
107
107
|
|
|
108
108
|
export default defineConfig({
|
|
109
109
|
tools: {
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
},
|
|
114
114
|
},
|
|
115
115
|
},
|
|
116
|
-
})
|
|
116
|
+
})
|
|
117
117
|
```
|
|
118
118
|
|
|
119
119
|
See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
|
|
@@ -245,12 +245,12 @@
|
|
|
245
245
|
example:
|
|
246
246
|
|
|
247
247
|
```js
|
|
248
|
-
import { defineConfig } from
|
|
248
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
249
249
|
export default defineConfig({
|
|
250
250
|
server: {
|
|
251
|
-
base:
|
|
251
|
+
base: '/dist',
|
|
252
252
|
},
|
|
253
|
-
})
|
|
253
|
+
})
|
|
254
254
|
```
|
|
255
255
|
|
|
256
256
|
- Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
|
|
@@ -303,11 +303,11 @@
|
|
|
303
303
|
You can switch to other tools by using:
|
|
304
304
|
|
|
305
305
|
```js
|
|
306
|
-
import { defineConfig } from
|
|
306
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
307
307
|
import {
|
|
308
308
|
CssMinimizerWebpackPlugin,
|
|
309
309
|
pluginCssMinimizer,
|
|
310
|
-
} from
|
|
310
|
+
} from '@rsbuild/plugin-css-minimizer'
|
|
311
311
|
|
|
312
312
|
export default defineConfig({
|
|
313
313
|
plugins: [
|
|
@@ -320,7 +320,7 @@
|
|
|
320
320
|
},
|
|
321
321
|
}),
|
|
322
322
|
],
|
|
323
|
-
})
|
|
323
|
+
})
|
|
324
324
|
```
|
|
325
325
|
|
|
326
326
|
See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
|
|
@@ -330,8 +330,8 @@
|
|
|
330
330
|
You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
|
|
331
331
|
|
|
332
332
|
```js
|
|
333
|
-
import { defineConfig } from
|
|
334
|
-
import { pluginCssMinimizer } from
|
|
333
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
334
|
+
import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
|
|
335
335
|
|
|
336
336
|
export default defineConfig({
|
|
337
337
|
plugins: [
|
|
@@ -343,7 +343,7 @@
|
|
|
343
343
|
},
|
|
344
344
|
}),
|
|
345
345
|
],
|
|
346
|
-
})
|
|
346
|
+
})
|
|
347
347
|
```
|
|
348
348
|
|
|
349
349
|
## 0.7.1
|
|
@@ -363,7 +363,7 @@
|
|
|
363
363
|
You may turn it off using `output.minify.css: false`:
|
|
364
364
|
|
|
365
365
|
```js
|
|
366
|
-
import { defineConfig } from
|
|
366
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
367
367
|
|
|
368
368
|
export default defineConfig({
|
|
369
369
|
output: {
|
|
@@ -371,18 +371,18 @@
|
|
|
371
371
|
css: false,
|
|
372
372
|
},
|
|
373
373
|
},
|
|
374
|
-
})
|
|
374
|
+
})
|
|
375
375
|
```
|
|
376
376
|
|
|
377
377
|
Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
|
|
378
378
|
|
|
379
379
|
```js
|
|
380
|
-
import { defineConfig } from
|
|
381
|
-
import { pluginCssMinimizer } from
|
|
380
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
381
|
+
import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
|
|
382
382
|
|
|
383
383
|
export default defineConfig({
|
|
384
384
|
plugins: [pluginCssMinimizer()],
|
|
385
|
-
})
|
|
385
|
+
})
|
|
386
386
|
```
|
|
387
387
|
|
|
388
388
|
- 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
|
|
@@ -409,22 +409,22 @@
|
|
|
409
409
|
- The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
|
|
410
410
|
|
|
411
411
|
```js
|
|
412
|
-
import { defineConfig } from
|
|
412
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
413
413
|
|
|
414
414
|
export default defineConfig({
|
|
415
415
|
dev: {
|
|
416
416
|
watchFiles: [
|
|
417
417
|
{
|
|
418
|
-
type:
|
|
419
|
-
paths: [
|
|
418
|
+
type: 'reload-server',
|
|
419
|
+
paths: ['public/**/*.txt'],
|
|
420
420
|
},
|
|
421
421
|
{
|
|
422
|
-
type:
|
|
423
|
-
paths: [
|
|
422
|
+
type: 'reload-page',
|
|
423
|
+
paths: ['public/**/*.json'],
|
|
424
424
|
},
|
|
425
425
|
],
|
|
426
426
|
},
|
|
427
|
-
})
|
|
427
|
+
})
|
|
428
428
|
```
|
|
429
429
|
|
|
430
430
|
- 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.9.
|
|
115
|
+
i8: "0.9.8"
|
|
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.9.
|
|
43
|
+
i8: "0.9.8"
|
|
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.9.
|
|
13
|
+
i8: "0.9.8"
|
|
14
14
|
};
|
|
15
15
|
const version = package_namespaceObject.i8;
|
|
16
16
|
const rspackVersion = core_.rspack.rspackVersion;
|