@lynx-js/rspeedy-canary 0.9.7-canary-20250526-9ed1bb97 → 0.9.7
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 +36 -36
- 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,13 +1,13 @@
|
|
|
1
1
|
# @lynx-js/rspeedy
|
|
2
2
|
|
|
3
|
-
## 0.9.7
|
|
3
|
+
## 0.9.7
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
- The default value of `output.inlineScripts` should be `true`. ([#
|
|
7
|
+
- The default value of `output.inlineScripts` should be `true`. ([#915](https://github.com/lynx-family/lynx-stack/pull/915))
|
|
8
8
|
|
|
9
|
-
- Updated dependencies [[`
|
|
10
|
-
- @lynx-js/chunk-loading-webpack-plugin@0.3.0
|
|
9
|
+
- Updated dependencies [[`c210b79`](https://github.com/lynx-family/lynx-stack/commit/c210b79319cf014c89c2215f5e0940163eccfa1e)]:
|
|
10
|
+
- @lynx-js/chunk-loading-webpack-plugin@0.3.0
|
|
11
11
|
|
|
12
12
|
## 0.9.6
|
|
13
13
|
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
example:
|
|
21
21
|
|
|
22
22
|
```js
|
|
23
|
-
import { defineConfig } from
|
|
23
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
24
24
|
|
|
25
25
|
export default defineConfig({
|
|
26
26
|
output: {
|
|
27
27
|
inlineScripts: false,
|
|
28
28
|
},
|
|
29
|
-
})
|
|
29
|
+
})
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
- Bump Rsbuild v1.3.21 with Rspack v1.3.11. ([#863](https://github.com/lynx-family/lynx-stack/pull/863))
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
example:
|
|
47
47
|
|
|
48
48
|
```js
|
|
49
|
-
import { defineConfig } from
|
|
49
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
50
50
|
export default defineConfig({
|
|
51
51
|
source: {
|
|
52
|
-
preEntry:
|
|
52
|
+
preEntry: './src/polyfill.ts',
|
|
53
53
|
},
|
|
54
|
-
})
|
|
54
|
+
})
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
- Bump Rsbuild v1.3.20 with Rspack v1.3.10. ([#799](https://github.com/lynx-family/lynx-stack/pull/799))
|
|
@@ -62,17 +62,17 @@
|
|
|
62
62
|
|
|
63
63
|
```js
|
|
64
64
|
export const myPlugin = {
|
|
65
|
-
name:
|
|
65
|
+
name: 'my-plugin',
|
|
66
66
|
setup(api) {
|
|
67
|
-
const { callerName } = api.context
|
|
67
|
+
const { callerName } = api.context
|
|
68
68
|
|
|
69
|
-
if (callerName ===
|
|
69
|
+
if (callerName === 'rslib') {
|
|
70
70
|
// ...
|
|
71
|
-
} else if (callerName ===
|
|
71
|
+
} else if (callerName === 'rspeedy') {
|
|
72
72
|
// ...
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
|
-
}
|
|
75
|
+
}
|
|
76
76
|
```
|
|
77
77
|
|
|
78
78
|
- Support `performance.buildCache`. ([#766](https://github.com/lynx-family/lynx-stack/pull/766))
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
|
|
96
96
|
|
|
97
97
|
```js
|
|
98
|
-
import { defineConfig } from
|
|
98
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
99
99
|
|
|
100
100
|
export default defineConfig({
|
|
101
101
|
tools: {
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
},
|
|
106
106
|
},
|
|
107
107
|
},
|
|
108
|
-
})
|
|
108
|
+
})
|
|
109
109
|
```
|
|
110
110
|
|
|
111
111
|
See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
|
|
@@ -237,12 +237,12 @@
|
|
|
237
237
|
example:
|
|
238
238
|
|
|
239
239
|
```js
|
|
240
|
-
import { defineConfig } from
|
|
240
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
241
241
|
export default defineConfig({
|
|
242
242
|
server: {
|
|
243
|
-
base:
|
|
243
|
+
base: '/dist',
|
|
244
244
|
},
|
|
245
|
-
})
|
|
245
|
+
})
|
|
246
246
|
```
|
|
247
247
|
|
|
248
248
|
- Updated dependencies [[`b026c8b`](https://github.com/lynx-family/lynx-stack/commit/b026c8bdcbf7bdcda73e170477297213b447d876)]:
|
|
@@ -295,11 +295,11 @@
|
|
|
295
295
|
You can switch to other tools by using:
|
|
296
296
|
|
|
297
297
|
```js
|
|
298
|
-
import { defineConfig } from
|
|
298
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
299
299
|
import {
|
|
300
300
|
CssMinimizerWebpackPlugin,
|
|
301
301
|
pluginCssMinimizer,
|
|
302
|
-
} from
|
|
302
|
+
} from '@rsbuild/plugin-css-minimizer'
|
|
303
303
|
|
|
304
304
|
export default defineConfig({
|
|
305
305
|
plugins: [
|
|
@@ -312,7 +312,7 @@
|
|
|
312
312
|
},
|
|
313
313
|
}),
|
|
314
314
|
],
|
|
315
|
-
})
|
|
315
|
+
})
|
|
316
316
|
```
|
|
317
317
|
|
|
318
318
|
See [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) for details.
|
|
@@ -322,8 +322,8 @@
|
|
|
322
322
|
You can use custom options with [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer):
|
|
323
323
|
|
|
324
324
|
```js
|
|
325
|
-
import { defineConfig } from
|
|
326
|
-
import { pluginCssMinimizer } from
|
|
325
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
326
|
+
import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
|
|
327
327
|
|
|
328
328
|
export default defineConfig({
|
|
329
329
|
plugins: [
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
},
|
|
336
336
|
}),
|
|
337
337
|
],
|
|
338
|
-
})
|
|
338
|
+
})
|
|
339
339
|
```
|
|
340
340
|
|
|
341
341
|
## 0.7.1
|
|
@@ -355,7 +355,7 @@
|
|
|
355
355
|
You may turn it off using `output.minify.css: false`:
|
|
356
356
|
|
|
357
357
|
```js
|
|
358
|
-
import { defineConfig } from
|
|
358
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
359
359
|
|
|
360
360
|
export default defineConfig({
|
|
361
361
|
output: {
|
|
@@ -363,18 +363,18 @@
|
|
|
363
363
|
css: false,
|
|
364
364
|
},
|
|
365
365
|
},
|
|
366
|
-
})
|
|
366
|
+
})
|
|
367
367
|
```
|
|
368
368
|
|
|
369
369
|
Or you may use [@rsbuild/plugin-css-minimizer](https://github.com/rspack-contrib/rsbuild-plugin-css-minimizer) to use `cssnano` as CSS minimizer.
|
|
370
370
|
|
|
371
371
|
```js
|
|
372
|
-
import { defineConfig } from
|
|
373
|
-
import { pluginCssMinimizer } from
|
|
372
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
373
|
+
import { pluginCssMinimizer } from '@rsbuild/plugin-css-minimizer'
|
|
374
374
|
|
|
375
375
|
export default defineConfig({
|
|
376
376
|
plugins: [pluginCssMinimizer()],
|
|
377
|
-
})
|
|
377
|
+
})
|
|
378
378
|
```
|
|
379
379
|
|
|
380
380
|
- 525554c: **BREAKING CHANGE**: Bump ts-blank-space to ^0.6.0.
|
|
@@ -401,22 +401,22 @@
|
|
|
401
401
|
- The new `type: 'reload-server'` will restart the development server when it detects changes in the specified files.
|
|
402
402
|
|
|
403
403
|
```js
|
|
404
|
-
import { defineConfig } from
|
|
404
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
405
405
|
|
|
406
406
|
export default defineConfig({
|
|
407
407
|
dev: {
|
|
408
408
|
watchFiles: [
|
|
409
409
|
{
|
|
410
|
-
type:
|
|
411
|
-
paths: [
|
|
410
|
+
type: 'reload-server',
|
|
411
|
+
paths: ['public/**/*.txt'],
|
|
412
412
|
},
|
|
413
413
|
{
|
|
414
|
-
type:
|
|
415
|
-
paths: [
|
|
414
|
+
type: 'reload-page',
|
|
415
|
+
paths: ['public/**/*.json'],
|
|
416
416
|
},
|
|
417
417
|
],
|
|
418
418
|
},
|
|
419
|
-
})
|
|
419
|
+
})
|
|
420
420
|
```
|
|
421
421
|
|
|
422
422
|
- 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_0__ = __webpack_require__("@rsbuild/core");
|
|
198
|
+
var picocolors__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js");
|
|
199
|
+
var picocolors__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/ __webpack_require__.n(picocolors__WEBPACK_IMPORTED_MODULE_1__);
|
|
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_1___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_0__.logger.level = 'verbose';
|
|
214
|
+
_rsbuild_core__WEBPACK_IMPORTED_MODULE_0__.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.7"
|
|
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.7"
|
|
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.7"
|
|
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.7
|
|
3
|
+
"version": "0.9.7",
|
|
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.3.0
|
|
49
|
+
"@lynx-js/chunk-loading-webpack-plugin": "npm:@lynx-js/chunk-loading-webpack-plugin-canary@0.3.0",
|
|
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",
|