@lynx-js/rspeedy-canary 0.11.2-canary-20250915-6d1375b7 → 0.11.2-canary-20250915-88622967
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 +4 -2
- package/dist/index.d.ts +19 -0
- package/dist/index.js +1 -0
- package/dist/src_cli_build_ts.js +1 -0
- package/dist/src_cli_dev_ts.js +1 -0
- package/dist/src_cli_inspect_ts.js +1 -0
- package/dist/src_cli_preview_ts.js +1 -0
- package/dist/src_config_validate_ts.js +2194 -1441
- package/dist/src_plugins_api_plugin_ts.js +2 -2
- package/dist/src_plugins_rsdoctor_plugin_ts.js +7 -13
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
# @lynx-js/rspeedy
|
|
2
2
|
|
|
3
|
-
## 0.11.2-canary-
|
|
3
|
+
## 0.11.2-canary-20250915100348-88622967b345f73ee8ed15aa3a89c39e1ae47f5d
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
+
- Support `server.proxy`. ([#1745](https://github.com/lynx-family/lynx-stack/pull/1745))
|
|
8
|
+
|
|
7
9
|
- Support `command` and `env` parameters in the function exported by `lynx.config.js`. ([#1669](https://github.com/lynx-family/lynx-stack/pull/1669))
|
|
8
10
|
|
|
9
11
|
```js
|
|
@@ -58,7 +60,7 @@
|
|
|
58
60
|
- Bump Rsbuild v1.5.4 with Rspack v1.5.2. ([#1644](https://github.com/lynx-family/lynx-stack/pull/1644))
|
|
59
61
|
|
|
60
62
|
- Updated dependencies [[`d7c5da3`](https://github.com/lynx-family/lynx-stack/commit/d7c5da329caddfb12ed77159fb8b1b8f38717cff)]:
|
|
61
|
-
- @lynx-js/chunk-loading-webpack-plugin@0.3.3-canary-
|
|
63
|
+
- @lynx-js/chunk-loading-webpack-plugin@0.3.3-canary-20250915100348-88622967b345f73ee8ed15aa3a89c39e1ae47f5d
|
|
62
64
|
- @lynx-js/cache-events-webpack-plugin@0.0.2
|
|
63
65
|
|
|
64
66
|
## 0.11.1
|
package/dist/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ import type { DistPathConfig } from '@rsbuild/core';
|
|
|
21
21
|
import type { InlineChunkConfig } from '@rsbuild/core';
|
|
22
22
|
import { logger } from '@rsbuild/core';
|
|
23
23
|
import type { PerformanceConfig } from '@rsbuild/core';
|
|
24
|
+
import type { ProxyConfig } from '@rsbuild/core';
|
|
24
25
|
import type { RsbuildConfig } from '@rsbuild/core';
|
|
25
26
|
import type { RsbuildInstance } from '@rsbuild/core';
|
|
26
27
|
import { RsbuildPlugin } from '@rsbuild/core';
|
|
@@ -2698,6 +2699,24 @@ export declare interface Server {
|
|
|
2698
2699
|
* ```
|
|
2699
2700
|
*/
|
|
2700
2701
|
port?: number | undefined;
|
|
2702
|
+
/**
|
|
2703
|
+
* Configure proxy rules for the dev server or preview server to proxy requests to the specified service.
|
|
2704
|
+
*
|
|
2705
|
+
* @example
|
|
2706
|
+
*
|
|
2707
|
+
* ```js
|
|
2708
|
+
* export default {
|
|
2709
|
+
* server: {
|
|
2710
|
+
* proxy: {
|
|
2711
|
+
* // http://localhost:3000/api -> http://localhost:3000/api
|
|
2712
|
+
* // http://localhost:3000/api/foo -> http://localhost:3000/api/foo
|
|
2713
|
+
* '/api': 'http://localhost:3000',
|
|
2714
|
+
* },
|
|
2715
|
+
* },
|
|
2716
|
+
* }
|
|
2717
|
+
* ```
|
|
2718
|
+
*/
|
|
2719
|
+
proxy?: ProxyConfig | undefined;
|
|
2701
2720
|
/**
|
|
2702
2721
|
* When a port is occupied, Rspeedy will automatically increment the port number until an available port is found.
|
|
2703
2722
|
*
|
package/dist/index.js
CHANGED
package/dist/src_cli_build_ts.js
CHANGED
package/dist/src_cli_dev_ts.js
CHANGED