@lark-apaas/fullstack-rspack-preset 1.0.54-alpha.0 → 1.0.54-alpha.2
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 +7 -0
- package/package.json +3 -3
package/lib/preset.js
CHANGED
|
@@ -377,6 +377,12 @@ function createRecommendRspackConfig(options) {
|
|
|
377
377
|
changeOrigin: true,
|
|
378
378
|
onError: sendBackendUnavailable502,
|
|
379
379
|
},
|
|
380
|
+
{
|
|
381
|
+
context: [`${clientBasePath}/openapi`],
|
|
382
|
+
target: `http://localhost:${serverPort}`,
|
|
383
|
+
changeOrigin: true,
|
|
384
|
+
onError: sendBackendUnavailable502,
|
|
385
|
+
},
|
|
380
386
|
{
|
|
381
387
|
context: [`${clientBasePath}/__innerapi__`],
|
|
382
388
|
target: `http://localhost:${serverPort}`,
|
|
@@ -429,6 +435,7 @@ function createRecommendRspackConfig(options) {
|
|
|
429
435
|
(0, devtool_kits_1.createDevLogsMiddleware)({ logDir: process.env.LOG_DIR || './logs' }),
|
|
430
436
|
(0, devtool_kits_1.createOpenapiMiddleware)({
|
|
431
437
|
openapiFilePath: path_1.default.resolve(rootDir, './client/src/api/gen/openapi.json'),
|
|
438
|
+
openapiSpecFilePath: path_1.default.resolve(rootDir, './docs/openapi.json'),
|
|
432
439
|
serverDir: path_1.default.resolve(rootDir, './server'),
|
|
433
440
|
enableEnhancement: true,
|
|
434
441
|
}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lark-apaas/fullstack-rspack-preset",
|
|
3
|
-
"version": "1.0.54-alpha.
|
|
3
|
+
"version": "1.0.54-alpha.2",
|
|
4
4
|
"files": [
|
|
5
5
|
"lib",
|
|
6
6
|
"patches",
|
|
@@ -31,9 +31,9 @@
|
|
|
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.23-alpha.0",
|
|
35
35
|
"@lark-apaas/miaoda-inspector-babel-plugin": "^1.0.2",
|
|
36
|
-
"@lark-apaas/styled-jsx": "1.0.
|
|
36
|
+
"@lark-apaas/styled-jsx": "^1.0.1",
|
|
37
37
|
"@rspack/plugin-react-refresh": "^1.5.1",
|
|
38
38
|
"@swc/plugin-styled-jsx": "^11.0.0",
|
|
39
39
|
"babel-loader": "^10.0.0",
|