@lynx-js/rspeedy 0.9.2 → 0.9.4
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 +42 -4
- package/dist/index.d.ts +46 -12
- package/dist/index.js +15 -39081
- package/dist/src_cli_build_ts.js +279 -17
- package/dist/src_cli_commands_ts.js +7 -19
- package/dist/src_cli_dev_ts.js +281 -24
- package/dist/src_cli_exit_ts.js +1 -1
- package/dist/src_cli_inspect_ts.js +279 -16
- package/dist/src_cli_preview_ts.js +279 -21
- package/dist/{src_config_loadConfig_ts-src_create-rspeedy_ts.js → src_config_validate_ts.js} +4839 -7031
- package/dist/src_plugins_api_plugin_ts.js +3 -3
- package/dist/src_plugins_chunkLoading_plugin_ts.js +1 -1
- package/dist/src_plugins_dev_plugin_ts.js +1 -1
- package/dist/src_plugins_index_ts.js +1 -1
- package/dist/src_plugins_inspect_plugin_ts.js +1 -1
- package/dist/src_plugins_minify_plugin_ts.js +1 -1
- package/dist/src_plugins_optimization_plugin_ts.js +1 -1
- package/dist/src_plugins_output_plugin_ts.js +1 -1
- package/dist/src_plugins_resolve_plugin_ts.js +1 -1
- package/dist/src_plugins_rsdoctor_plugin_ts.js +14 -8
- package/dist/src_plugins_sourcemap_plugin_ts.js +1 -1
- package/dist/src_plugins_stats_plugin_ts.js +2 -5
- package/dist/src_plugins_swc_plugin_ts.js +1 -1
- package/dist/src_plugins_target_plugin_ts.js +1 -1
- package/dist/src_version_ts.js +2 -2
- package/dist/vendors-node_modules_pnpm_chokidar_4_0_3_node_modules_chokidar_esm_index_js.js +1 -1
- package/dist/vendors-node_modules_pnpm_commander_13_1_0_node_modules_commander_esm_mjs.js +1 -1
- package/dist/vendors-node_modules_pnpm_ipaddr_js_2_2_0_node_modules_ipaddr_js_lib_ipaddr_js.js +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,48 @@
|
|
|
1
1
|
# @lynx-js/rspeedy
|
|
2
2
|
|
|
3
|
+
## 0.9.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Bump Rsbuild v1.3.17 with Rspack v1.3.9. ([#708](https://github.com/lynx-family/lynx-stack/pull/708))
|
|
8
|
+
|
|
9
|
+
- Support `performance.profile`. ([#691](https://github.com/lynx-family/lynx-stack/pull/691))
|
|
10
|
+
|
|
11
|
+
- Support CLI flag `--mode` to specify the build mode. ([#723](https://github.com/lynx-family/lynx-stack/pull/723))
|
|
12
|
+
|
|
13
|
+
- Enable native Rsdoctor plugin by default. ([#688](https://github.com/lynx-family/lynx-stack/pull/688))
|
|
14
|
+
|
|
15
|
+
Set `tools.rsdoctor.experiments.enableNativePlugin` to `false` to use the old JS plugin.
|
|
16
|
+
|
|
17
|
+
```js
|
|
18
|
+
import { defineConfig } from '@lynx-js/rspeedy'
|
|
19
|
+
|
|
20
|
+
export default defineConfig({
|
|
21
|
+
tools: {
|
|
22
|
+
rsdoctor: {
|
|
23
|
+
experiments: {
|
|
24
|
+
enableNativePlugin: false,
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
})
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
See [Rsdoctor - 1.0](https://rsdoctor.dev/blog/release/release-note-1_0#-faster-analysis) for more details.
|
|
32
|
+
|
|
33
|
+
- Bump Rsbuild v1.3.14 with Rspack v1.3.8. ([#630](https://github.com/lynx-family/lynx-stack/pull/630))
|
|
34
|
+
|
|
35
|
+
## 0.9.3
|
|
36
|
+
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- Bump Rsbuild v1.3.11 with Rspack v1.3.6. ([#594](https://github.com/lynx-family/lynx-stack/pull/594))
|
|
40
|
+
|
|
3
41
|
## 0.9.2
|
|
4
42
|
|
|
5
43
|
### Patch Changes
|
|
6
44
|
|
|
7
|
-
- Support
|
|
45
|
+
- Support CLI option `--no-env` to disable loading of `.env` files ([#483](https://github.com/lynx-family/lynx-stack/pull/483))
|
|
8
46
|
|
|
9
47
|
- Bump Rsbuild v1.3.8 with Rspack v1.3.5. ([#579](https://github.com/lynx-family/lynx-stack/pull/579))
|
|
10
48
|
|
|
@@ -40,9 +78,9 @@
|
|
|
40
78
|
|
|
41
79
|
### Patch Changes
|
|
42
80
|
|
|
43
|
-
- Support
|
|
81
|
+
- Support CLI flag `--base` to specify the base path of the server. ([#387](https://github.com/lynx-family/lynx-stack/pull/387))
|
|
44
82
|
|
|
45
|
-
- Support
|
|
83
|
+
- Support CLI flag `--environment` to specify the name of environment to build ([#462](https://github.com/lynx-family/lynx-stack/pull/462))
|
|
46
84
|
|
|
47
85
|
- Select the most appropriate network interface. ([#457](https://github.com/lynx-family/lynx-stack/pull/457))
|
|
48
86
|
|
|
@@ -52,7 +90,7 @@
|
|
|
52
90
|
|
|
53
91
|
See [Node.js - TypeScript](https://nodejs.org/api/typescript.html) for more details.
|
|
54
92
|
|
|
55
|
-
- Support
|
|
93
|
+
- Support CLI flag `--env-mode` to specify the env mode to load the `.env.[mode]` file. ([#453](https://github.com/lynx-family/lynx-stack/pull/453))
|
|
56
94
|
|
|
57
95
|
- Support `dev.hmr` and `dev.liveReload`. ([#458](https://github.com/lynx-family/lynx-stack/pull/458))
|
|
58
96
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1104,7 +1104,9 @@ export declare interface DistPath extends DistPathConfig {
|
|
|
1104
1104
|
* ```js
|
|
1105
1105
|
* import { defineConfig } from '@lynx-js/rspeedy'
|
|
1106
1106
|
* export default defineConfig({
|
|
1107
|
-
*
|
|
1107
|
+
* source: {
|
|
1108
|
+
* entry: './src/pages/main/index.js',
|
|
1109
|
+
* }
|
|
1108
1110
|
* })
|
|
1109
1111
|
* ```
|
|
1110
1112
|
*
|
|
@@ -1115,7 +1117,9 @@ export declare interface DistPath extends DistPathConfig {
|
|
|
1115
1117
|
* ```js
|
|
1116
1118
|
* import { defineConfig } from '@lynx-js/rspeedy'
|
|
1117
1119
|
* export default defineConfig({
|
|
1118
|
-
*
|
|
1120
|
+
* source: {
|
|
1121
|
+
* entry: ['./src/prefetch.js', './src/pages/main/index.js'],
|
|
1122
|
+
* }
|
|
1119
1123
|
* })
|
|
1120
1124
|
* ```
|
|
1121
1125
|
*
|
|
@@ -1126,10 +1130,12 @@ export declare interface DistPath extends DistPathConfig {
|
|
|
1126
1130
|
* ```js
|
|
1127
1131
|
* import { defineConfig } from '@lynx-js/rspeedy'
|
|
1128
1132
|
* export default defineConfig({
|
|
1129
|
-
*
|
|
1130
|
-
*
|
|
1131
|
-
*
|
|
1132
|
-
*
|
|
1133
|
+
* source: {
|
|
1134
|
+
* entry: {
|
|
1135
|
+
* foo: './src/pages/foo/index.js',
|
|
1136
|
+
* bar: ['./src/pages/bar/index.js', './src/post.js'], // multiple entry modules is allowed
|
|
1137
|
+
* }
|
|
1138
|
+
* }
|
|
1133
1139
|
* })
|
|
1134
1140
|
* ```
|
|
1135
1141
|
*
|
|
@@ -1140,12 +1146,14 @@ export declare interface DistPath extends DistPathConfig {
|
|
|
1140
1146
|
* ```js
|
|
1141
1147
|
* import { defineConfig } from '@lynx-js/rspeedy'
|
|
1142
1148
|
* export default defineConfig({
|
|
1143
|
-
*
|
|
1144
|
-
*
|
|
1145
|
-
*
|
|
1146
|
-
*
|
|
1147
|
-
*
|
|
1148
|
-
*
|
|
1149
|
+
* source: {
|
|
1150
|
+
* entry: {
|
|
1151
|
+
* foo: './src/pages/foo/index.js',
|
|
1152
|
+
* bar: {
|
|
1153
|
+
* import: ['./src/prefetch.js', './src/pages/bar'],
|
|
1154
|
+
* }
|
|
1155
|
+
* }
|
|
1156
|
+
* }
|
|
1149
1157
|
* })
|
|
1150
1158
|
* ```
|
|
1151
1159
|
* @public
|
|
@@ -1891,6 +1899,32 @@ export declare interface Performance {
|
|
|
1891
1899
|
* {@link Performance.chunkSplit} is used to configure the chunk splitting strategy.
|
|
1892
1900
|
*/
|
|
1893
1901
|
chunkSplit?: ChunkSplit | ChunkSplitBySize | ChunkSplitCustom | undefined;
|
|
1902
|
+
/**
|
|
1903
|
+
* Whether capture timing information in the build time and the runtime, the same as the {@link https://rspack.dev/config/other-options#profile | profile} config of Rspack.
|
|
1904
|
+
*
|
|
1905
|
+
* @remarks
|
|
1906
|
+
*
|
|
1907
|
+
* This option would be `true` when `DEBUG` environment variable contains `rspeedy`.
|
|
1908
|
+
*
|
|
1909
|
+
* @example
|
|
1910
|
+
*
|
|
1911
|
+
* Enable profile.
|
|
1912
|
+
*
|
|
1913
|
+
* - Rsbuild will auto-generate `dist/stats.json` file through bundle analyzer.
|
|
1914
|
+
*
|
|
1915
|
+
* - Rspack will include the build time information when generating `stats.json`.
|
|
1916
|
+
*
|
|
1917
|
+
* - Frameworks like ReactLynx will include runtime information using `console.profile`.
|
|
1918
|
+
*
|
|
1919
|
+
* ```ts
|
|
1920
|
+
* import { defineConfig } from '@lynx-js/rspeedy'
|
|
1921
|
+
*
|
|
1922
|
+
* export default defineConfig({
|
|
1923
|
+
* performance: { profile: true },
|
|
1924
|
+
* })
|
|
1925
|
+
* ```
|
|
1926
|
+
*/
|
|
1927
|
+
profile?: boolean | undefined;
|
|
1894
1928
|
/**
|
|
1895
1929
|
* Whether to remove `console.[methodName]` in production build.
|
|
1896
1930
|
*
|