@lynx-js/rspeedy-canary 0.9.9-canary-20250606-f2706bfb → 0.9.9
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @lynx-js/rspeedy
|
|
2
2
|
|
|
3
|
-
## 0.9.9
|
|
3
|
+
## 0.9.9
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
example:
|
|
37
37
|
|
|
38
38
|
```js
|
|
39
|
-
import { defineConfig } from
|
|
39
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
40
40
|
|
|
41
41
|
export default defineConfig({
|
|
42
42
|
output: {
|
|
43
43
|
inlineScripts: false,
|
|
44
44
|
},
|
|
45
|
-
})
|
|
45
|
+
})
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
- Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
|
|
@@ -62,12 +62,12 @@
|
|
|
62
62
|
example:
|
|
63
63
|
|
|
64
64
|
```js
|
|
65
|
-
import { defineConfig } from
|
|
65
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
66
66
|
export default defineConfig({
|
|
67
67
|
source: {
|
|
68
|
-
preEntry:
|
|
68
|
+
preEntry: './src/polyfill.ts',
|
|
69
69
|
},
|
|
70
|
-
})
|
|
70
|
+
})
|
|
71
71
|
```
|
|
72
72
|
|
|
73
73
|
- Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
|
|
@@ -78,17 +78,17 @@
|
|
|
78
78
|
|
|
79
79
|
```js
|
|
80
80
|
export const myPlugin = {
|
|
81
|
-
name:
|
|
81
|
+
name: 'my-plugin',
|
|
82
82
|
setup(api) {
|
|
83
|
-
const { callerName } = api.context
|
|
83
|
+
const { callerName } = api.context
|
|
84
84
|
|
|
85
|
-
if (callerName ===
|
|
85
|
+
if (callerName === 'rslib') {
|
|
86
86
|
// ...
|
|
87
|
-
} else if (callerName ===
|
|
87
|
+
} else if (callerName === 'rspeedy') {
|
|
88
88
|
// ...
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
|
-
}
|
|
91
|
+
}
|
|
92
92
|
```
|
|
93
93
|
|
|
94
94
|
- Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
|
|
112
112
|
|
|
113
113
|
```js
|
|
114
|
-
import { defineConfig } from
|
|
114
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
115
115
|
|
|
116
116
|
export default defineConfig({
|
|
117
117
|
tools: {
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
},
|
|
122
122
|
},
|
|
123
123
|
},
|
|
124
|
-
})
|
|
124
|
+
})
|
|
125
125
|
```
|
|
126
126
|
|
|
127
127
|
See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
|
|
@@ -253,12 +253,12 @@
|
|
|
253
253
|
example:
|
|
254
254
|
|
|
255
255
|
```js
|
|
256
|
-
import { defineConfig } from
|
|
256
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
257
257
|
export default defineConfig({
|
|
258
258
|
server: {
|
|
259
|
-
base:
|
|
259
|
+
base: '/dist',
|
|
260
260
|
},
|
|
261
|
-
})
|
|
261
|
+
})
|
|
262
262
|
```
|
|
263
263
|
|
|
264
264
|
- Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
|
|
@@ -311,11 +311,11 @@
|
|
|
311
311
|
You can switch to other tools by using:
|
|
312
312
|
|
|
313
313
|
```js
|
|
314
|
-
import { defineConfig } from
|
|
314
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
315
315
|
import {
|
|
316
316
|
CssMinimizerWebpackPlugin,
|
|
317
317
|
pluginCssMinimizer,
|
|
318
|
-
} from
|
|
318
|
+
} from '@rsbuild/plugin-css-minimizer'
|
|
319
319
|
|
|
320
320
|
export default defineConfig({
|
|
321
321
|
plugins: [
|
|
@@ -328,7 +328,7 @@
|
|
|
328
328
|
},
|
|
329
329
|
}),
|
|
330
330
|
],
|
|
331
|
-
})
|
|
331
|
+
})
|
|
332
332
|
```
|
|
333
333
|
|
|
334
334
|
See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
|
|
@@ -338,8 +338,8 @@
|
|
|
338
338
|
You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
|
|
339
339
|
|
|
340
340
|
```js
|
|
341
|
-
import { defineConfig } from
|
|
342
|
-
import { pluginCssMinimizer } from
|
|
341
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
342
|
+
import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
|
|
343
343
|
|
|
344
344
|
export default defineConfig({
|
|
345
345
|
plugins: [
|
|
@@ -351,7 +351,7 @@
|
|
|
351
351
|
},
|
|
352
352
|
}),
|
|
353
353
|
],
|
|
354
|
-
})
|
|
354
|
+
})
|
|
355
355
|
```
|
|
356
356
|
|
|
357
357
|
## 0.7.1
|
|
@@ -371,7 +371,7 @@
|
|
|
371
371
|
You may turn it off using `output.minify.css: false`:
|
|
372
372
|
|
|
373
373
|
```js
|
|
374
|
-
import { defineConfig } from
|
|
374
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
375
375
|
|
|
376
376
|
export default defineConfig({
|
|
377
377
|
output: {
|
|
@@ -379,18 +379,18 @@
|
|
|
379
379
|
css: false,
|
|
380
380
|
},
|
|
381
381
|
},
|
|
382
|
-
})
|
|
382
|
+
})
|
|
383
383
|
```
|
|
384
384
|
|
|
385
385
|
Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
|
|
386
386
|
|
|
387
387
|
```js
|
|
388
|
-
import { defineConfig } from
|
|
389
|
-
import { pluginCssMinimizer } from
|
|
388
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
389
|
+
import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
|
|
390
390
|
|
|
391
391
|
export default defineConfig({
|
|
392
392
|
plugins: [pluginCssMinimizer()],
|
|
393
|
-
})
|
|
393
|
+
})
|
|
394
394
|
```
|
|
395
395
|
|
|
396
396
|
- 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
|
|
@@ -417,22 +417,22 @@
|
|
|
417
417
|
- The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
|
|
418
418
|
|
|
419
419
|
```js
|
|
420
|
-
import { defineConfig } from
|
|
420
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
421
421
|
|
|
422
422
|
export default defineConfig({
|
|
423
423
|
dev: {
|
|
424
424
|
watchFiles: [
|
|
425
425
|
{
|
|
426
|
-
type:
|
|
427
|
-
paths: [
|
|
426
|
+
type: 'reload-server',
|
|
427
|
+
paths: ['public/**/*.txt'],
|
|
428
428
|
},
|
|
429
429
|
{
|
|
430
|
-
type:
|
|
431
|
-
paths: [
|
|
430
|
+
type: 'reload-page',
|
|
431
|
+
paths: ['public/**/*.json'],
|
|
432
432
|
},
|
|
433
433
|
],
|
|
434
434
|
},
|
|
435
|
-
})
|
|
435
|
+
})
|
|
436
436
|
```
|
|
437
437
|
|
|
438
438
|
- 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.9"
|
|
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.9"
|
|
44
44
|
};
|
|
45
45
|
const version = package_namespaceObject.i8;
|
|
46
46
|
const rspackVersion = core_.rspack.rspackVersion;
|
|
@@ -19,11 +19,11 @@ export const __webpack_modules__ = {
|
|
|
19
19
|
config,
|
|
20
20
|
debug: _debug_js__WEBPACK_IMPORTED_MODULE_1__.fF,
|
|
21
21
|
async exit (code) {
|
|
22
|
-
const { exit } = await
|
|
22
|
+
const { exit } = await Promise.resolve().then(__webpack_require__.bind(__webpack_require__, "./src/cli/exit.ts"));
|
|
23
23
|
return exit(code);
|
|
24
24
|
},
|
|
25
25
|
logger: _rsbuild_core__WEBPACK_IMPORTED_MODULE_0__.logger,
|
|
26
|
-
version: _version_js__WEBPACK_IMPORTED_MODULE_2__.
|
|
26
|
+
version: _version_js__WEBPACK_IMPORTED_MODULE_2__.version
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
};
|
|
@@ -7,10 +7,8 @@ export const __webpack_modules__ = {
|
|
|
7
7
|
__webpack_require__.d(__webpack_exports__, {
|
|
8
8
|
pluginRsdoctor: ()=>pluginRsdoctor
|
|
9
9
|
});
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
return !!process.env['CI'] && 'false' !== process.env['CI'];
|
|
13
|
-
}
|
|
10
|
+
var _rsbuild_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("@rsbuild/core");
|
|
11
|
+
var _utils_is_ci_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./src/utils/is-ci.ts");
|
|
14
12
|
function pluginRsdoctor(options) {
|
|
15
13
|
return {
|
|
16
14
|
name: 'lynx:rsbuild:rsdoctor',
|
|
@@ -27,7 +25,7 @@ export const __webpack_modules__ = {
|
|
|
27
25
|
if (registered) continue;
|
|
28
26
|
config.plugins ??= [];
|
|
29
27
|
const defaultOptions = {
|
|
30
|
-
disableClientServer:
|
|
28
|
+
disableClientServer: (0, _utils_is_ci_js__WEBPACK_IMPORTED_MODULE_1__.y)(),
|
|
31
29
|
supports: {
|
|
32
30
|
banner: true
|
|
33
31
|
},
|
|
@@ -42,12 +40,20 @@ export const __webpack_modules__ = {
|
|
|
42
40
|
}
|
|
43
41
|
}
|
|
44
42
|
};
|
|
45
|
-
config.plugins.push(new RsdoctorRspackPlugin((0,
|
|
43
|
+
config.plugins.push(new RsdoctorRspackPlugin((0, _rsbuild_core__WEBPACK_IMPORTED_MODULE_0__.mergeRsbuildConfig)(defaultOptions, options)));
|
|
46
44
|
}
|
|
47
|
-
|
|
45
|
+
_rsbuild_core__WEBPACK_IMPORTED_MODULE_0__.logger.info("Rsdoctor is enabled.");
|
|
48
46
|
});
|
|
49
47
|
}
|
|
50
48
|
};
|
|
51
49
|
}
|
|
50
|
+
},
|
|
51
|
+
"./src/utils/is-ci.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
52
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
53
|
+
y: ()=>isCI
|
|
54
|
+
});
|
|
55
|
+
function isCI() {
|
|
56
|
+
return !!process.env['CI'] && 'false' !== process.env['CI'];
|
|
57
|
+
}
|
|
52
58
|
}
|
|
53
59
|
};
|
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.9"
|
|
14
14
|
};
|
|
15
15
|
const version = package_namespaceObject.i8;
|
|
16
16
|
const rspackVersion = core_.rspack.rspackVersion;
|