@lark-apaas/fullstack-rspack-preset 1.0.16 → 1.0.17-alpha.0
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/lib/preset.js +5 -0
- package/package.json +2 -2
package/lib/preset.js
CHANGED
|
@@ -277,6 +277,11 @@ function createRecommendRspackConfig(options) {
|
|
|
277
277
|
target: `http://localhost:${serverPort}`,
|
|
278
278
|
changeOrigin: true,
|
|
279
279
|
},
|
|
280
|
+
{
|
|
281
|
+
context: [`${clientBasePath}/__innerapi__`],
|
|
282
|
+
target: `http://localhost:${serverPort}`,
|
|
283
|
+
changeOrigin: true,
|
|
284
|
+
},
|
|
280
285
|
{
|
|
281
286
|
context: (pathname, req) => {
|
|
282
287
|
// 代理所有请求 HTML 响应的请求(页面路由)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lark-apaas/fullstack-rspack-preset",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17-alpha.0",
|
|
4
4
|
"files": [
|
|
5
5
|
"lib",
|
|
6
6
|
"patches",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@babel/parser": "^7.28.0",
|
|
32
32
|
"@babel/traverse": "^7.28.0",
|
|
33
33
|
"@babel/types": "^7.28.2",
|
|
34
|
-
"@lark-apaas/devtool-kits": "
|
|
34
|
+
"@lark-apaas/devtool-kits": "1.2.5-alpha.0",
|
|
35
35
|
"@lark-apaas/miaoda-inspector-babel-plugin": "^1.0.0",
|
|
36
36
|
"@lark-apaas/miaoda-inspector-jsx-runtime": "^1.0.0",
|
|
37
37
|
"@rspack/plugin-react-refresh": "^1.5.1",
|