@lynx-js/rspeedy-canary 0.9.6-canary-20250523-5ddec124 → 0.9.6
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 +34 -34
- package/dist/cli/main.js +6 -6
- 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 +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @lynx-js/rspeedy
|
|
2
2
|
|
|
3
|
-
## 0.9.6
|
|
3
|
+
## 0.9.6
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
@@ -11,19 +11,19 @@
|
|
|
11
11
|
example:
|
|
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: {
|
|
18
18
|
inlineScripts: false,
|
|
19
19
|
},
|
|
20
|
-
})
|
|
20
|
+
})
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
- Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
|
|
24
24
|
|
|
25
25
|
- Updated dependencies [[`5b67bde`](https://github.com/lynx-family/lynx-stack/commit/5b67bde8a7286b9dcc727c9707cf83020bb5abfa)]:
|
|
26
|
-
- @lynx-js/chunk-loading-webpack-plugin@0.2.1
|
|
26
|
+
- @lynx-js/chunk-loading-webpack-plugin@0.2.1
|
|
27
27
|
|
|
28
28
|
## 0.9.5
|
|
29
29
|
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
example:
|
|
38
38
|
|
|
39
39
|
```js
|
|
40
|
-
import { defineConfig } from
|
|
40
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
41
41
|
export default defineConfig({
|
|
42
42
|
source: {
|
|
43
|
-
preEntry:
|
|
43
|
+
preEntry: './src/polyfill.ts',
|
|
44
44
|
},
|
|
45
|
-
})
|
|
45
|
+
})
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
- Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
|
|
@@ -53,17 +53,17 @@
|
|
|
53
53
|
|
|
54
54
|
```js
|
|
55
55
|
export const myPlugin = {
|
|
56
|
-
name:
|
|
56
|
+
name: 'my-plugin',
|
|
57
57
|
setup(api) {
|
|
58
|
-
const { callerName } = api.context
|
|
58
|
+
const { callerName } = api.context
|
|
59
59
|
|
|
60
|
-
if (callerName ===
|
|
60
|
+
if (callerName === 'rslib') {
|
|
61
61
|
// ...
|
|
62
|
-
} else if (callerName ===
|
|
62
|
+
} else if (callerName === 'rspeedy') {
|
|
63
63
|
// ...
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
-
}
|
|
66
|
+
}
|
|
67
67
|
```
|
|
68
68
|
|
|
69
69
|
- Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
|
|
87
87
|
|
|
88
88
|
```js
|
|
89
|
-
import { defineConfig } from
|
|
89
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
90
90
|
|
|
91
91
|
export default defineConfig({
|
|
92
92
|
tools: {
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
},
|
|
97
97
|
},
|
|
98
98
|
},
|
|
99
|
-
})
|
|
99
|
+
})
|
|
100
100
|
```
|
|
101
101
|
|
|
102
102
|
See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
|
|
@@ -228,12 +228,12 @@
|
|
|
228
228
|
example:
|
|
229
229
|
|
|
230
230
|
```js
|
|
231
|
-
import { defineConfig } from
|
|
231
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
232
232
|
export default defineConfig({
|
|
233
233
|
server: {
|
|
234
|
-
base:
|
|
234
|
+
base: '/dist',
|
|
235
235
|
},
|
|
236
|
-
})
|
|
236
|
+
})
|
|
237
237
|
```
|
|
238
238
|
|
|
239
239
|
- Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
|
|
@@ -286,11 +286,11 @@
|
|
|
286
286
|
You can switch to other tools by using:
|
|
287
287
|
|
|
288
288
|
```js
|
|
289
|
-
import { defineConfig } from
|
|
289
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
290
290
|
import {
|
|
291
291
|
CssMinimizerWebpackPlugin,
|
|
292
292
|
pluginCssMinimizer,
|
|
293
|
-
} from
|
|
293
|
+
} from '@rsbuild/plugin-css-minimizer'
|
|
294
294
|
|
|
295
295
|
export default defineConfig({
|
|
296
296
|
plugins: [
|
|
@@ -303,7 +303,7 @@
|
|
|
303
303
|
},
|
|
304
304
|
}),
|
|
305
305
|
],
|
|
306
|
-
})
|
|
306
|
+
})
|
|
307
307
|
```
|
|
308
308
|
|
|
309
309
|
See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
|
|
@@ -313,8 +313,8 @@
|
|
|
313
313
|
You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
|
|
314
314
|
|
|
315
315
|
```js
|
|
316
|
-
import { defineConfig } from
|
|
317
|
-
import { pluginCssMinimizer } from
|
|
316
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
317
|
+
import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
|
|
318
318
|
|
|
319
319
|
export default defineConfig({
|
|
320
320
|
plugins: [
|
|
@@ -326,7 +326,7 @@
|
|
|
326
326
|
},
|
|
327
327
|
}),
|
|
328
328
|
],
|
|
329
|
-
})
|
|
329
|
+
})
|
|
330
330
|
```
|
|
331
331
|
|
|
332
332
|
## 0.7.1
|
|
@@ -346,7 +346,7 @@
|
|
|
346
346
|
You may turn it off using `output.minify.css: false`:
|
|
347
347
|
|
|
348
348
|
```js
|
|
349
|
-
import { defineConfig } from
|
|
349
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
350
350
|
|
|
351
351
|
export default defineConfig({
|
|
352
352
|
output: {
|
|
@@ -354,18 +354,18 @@
|
|
|
354
354
|
css: false,
|
|
355
355
|
},
|
|
356
356
|
},
|
|
357
|
-
})
|
|
357
|
+
})
|
|
358
358
|
```
|
|
359
359
|
|
|
360
360
|
Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
|
|
361
361
|
|
|
362
362
|
```js
|
|
363
|
-
import { defineConfig } from
|
|
364
|
-
import { pluginCssMinimizer } from
|
|
363
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
364
|
+
import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
|
|
365
365
|
|
|
366
366
|
export default defineConfig({
|
|
367
367
|
plugins: [pluginCssMinimizer()],
|
|
368
|
-
})
|
|
368
|
+
})
|
|
369
369
|
```
|
|
370
370
|
|
|
371
371
|
- 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
|
|
@@ -392,22 +392,22 @@
|
|
|
392
392
|
- The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
|
|
393
393
|
|
|
394
394
|
```js
|
|
395
|
-
import { defineConfig } from
|
|
395
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
396
396
|
|
|
397
397
|
export default defineConfig({
|
|
398
398
|
dev: {
|
|
399
399
|
watchFiles: [
|
|
400
400
|
{
|
|
401
|
-
type:
|
|
402
|
-
paths: [
|
|
401
|
+
type: 'reload-server',
|
|
402
|
+
paths: ['public/**/*.txt'],
|
|
403
403
|
},
|
|
404
404
|
{
|
|
405
|
-
type:
|
|
406
|
-
paths: [
|
|
405
|
+
type: 'reload-page',
|
|
406
|
+
paths: ['public/**/*.json'],
|
|
407
407
|
},
|
|
408
408
|
],
|
|
409
409
|
},
|
|
410
|
-
})
|
|
410
|
+
})
|
|
411
411
|
```
|
|
412
412
|
|
|
413
413
|
- be9b003: Add `source.exclude`.
|
package/dist/cli/main.js
CHANGED
|
@@ -194,9 +194,9 @@ var __webpack_modules__ = {
|
|
|
194
194
|
NW: ()=>debugList,
|
|
195
195
|
fF: ()=>debug
|
|
196
196
|
});
|
|
197
|
-
var
|
|
198
|
-
var
|
|
199
|
-
var
|
|
197
|
+
var _rsbuild_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("@rsbuild/core");
|
|
198
|
+
var picocolors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
|
|
199
|
+
var picocolors__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/ __webpack_require__.n(picocolors__WEBPACK_IMPORTED_MODULE_0__);
|
|
200
200
|
const isDebug = ()=>{
|
|
201
201
|
if (!process.env['DEBUG']) return false;
|
|
202
202
|
const values = process.env['DEBUG'].toLocaleLowerCase().split(',');
|
|
@@ -206,12 +206,12 @@ var __webpack_modules__ = {
|
|
|
206
206
|
'*'
|
|
207
207
|
].some((key)=>values.includes(key));
|
|
208
208
|
};
|
|
209
|
-
const label =
|
|
209
|
+
const label = picocolors__WEBPACK_IMPORTED_MODULE_0___default().bgCyan('lynx');
|
|
210
210
|
const debug = (message)=>{
|
|
211
211
|
if (isDebug()) {
|
|
212
212
|
const result = 'string' == typeof message ? message : message();
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
_rsbuild_core__WEBPACK_IMPORTED_MODULE_1__.logger.level = 'verbose';
|
|
214
|
+
_rsbuild_core__WEBPACK_IMPORTED_MODULE_1__.logger.debug(`${label} ${result}`);
|
|
215
215
|
}
|
|
216
216
|
};
|
|
217
217
|
const debugList = (prefix, messages)=>debug(()=>`${prefix} ${[
|
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.6"
|
|
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.6"
|
|
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.6"
|
|
14
14
|
};
|
|
15
15
|
const version = package_namespaceObject.i8;
|
|
16
16
|
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.9.6
|
|
3
|
+
"version": "0.9.6",
|
|
4
4
|
"description": "A webpack/rspack-based frontend toolchain for Lynx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"README.md"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@lynx-js/chunk-loading-webpack-plugin": "npm:@lynx-js/chunk-loading-webpack-plugin-canary@0.2.1
|
|
49
|
+
"@lynx-js/chunk-loading-webpack-plugin": "npm:@lynx-js/chunk-loading-webpack-plugin-canary@0.2.1",
|
|
50
50
|
"@lynx-js/webpack-dev-transport": "npm:@lynx-js/webpack-dev-transport-canary@0.1.3",
|
|
51
51
|
"@lynx-js/websocket": "npm:@lynx-js/websocket-canary@0.0.4",
|
|
52
52
|
"@rsbuild/core": "1.3.21",
|