@lark-apaas/fullstack-rspack-preset 1.0.16 → 1.0.17
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 +2 -6
- package/package.json +1 -1
package/lib/preset.js
CHANGED
|
@@ -233,17 +233,13 @@ function createRecommendRspackConfig(options) {
|
|
|
233
233
|
publicPath: publicPath,
|
|
234
234
|
},
|
|
235
235
|
webSocketServer: {
|
|
236
|
-
|
|
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
|
-
|
|
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`
|