@lark-apaas/fullstack-rspack-preset 1.0.17-alpha.0 → 1.0.18-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.
Files changed (2) hide show
  1. package/lib/preset.js +2 -11
  2. package/package.json +2 -2
package/lib/preset.js CHANGED
@@ -233,17 +233,13 @@ function createRecommendRspackConfig(options) {
233
233
  publicPath: publicPath,
234
234
  },
235
235
  webSocketServer: {
236
- // TODO 这里临时耦合了 CLIENT_BASE_PATH 包含 'af/p' 字符串判断是否为 force 部署
237
- // 由于后期合并沙箱后会统一为 ws 协议,因此合并后直接删掉这里逻辑即可
238
- type: clientBasePath.includes('af/p') ? 'ws' : 'sockjs',
236
+ type: 'sockjs',
239
237
  options: {
240
238
  path: `${clientBasePath}/ws`,
241
239
  },
242
240
  },
243
241
  client: {
244
- // TODO 这里临时耦合了 CLIENT_BASE_PATH 包含 'af/p' 字符串判断是否为 force 部署
245
- // 由于后期合并沙箱后会统一为 ws 协议,因此合并后直接删掉这里逻辑即可
246
- webSocketTransport: clientBasePath.includes('af/p') ? 'ws' : 'sockjs',
242
+ webSocketTransport: 'sockjs',
247
243
  webSocketURL: {
248
244
  port: 0,
249
245
  pathname: `${clientBasePath}/ws`
@@ -277,11 +273,6 @@ function createRecommendRspackConfig(options) {
277
273
  target: `http://localhost:${serverPort}`,
278
274
  changeOrigin: true,
279
275
  },
280
- {
281
- context: [`${clientBasePath}/__innerapi__`],
282
- target: `http://localhost:${serverPort}`,
283
- changeOrigin: true,
284
- },
285
276
  {
286
277
  context: (pathname, req) => {
287
278
  // 代理所有请求 HTML 响应的请求(页面路由)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/fullstack-rspack-preset",
3
- "version": "1.0.17-alpha.0",
3
+ "version": "1.0.18-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": "1.2.5-alpha.0",
34
+ "@lark-apaas/devtool-kits": "1.2.5-alpha.1",
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",