@lark-apaas/fullstack-rspack-preset 1.0.21-alpha.0 → 1.0.21-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.
@@ -132,6 +132,12 @@ function removeAllChildren(element, skip) {
132
132
  // 获取父窗口 origin
133
133
  function getPreviewParentOrigin() {
134
134
  const { origin } = window.location;
135
+ if (origin.includes('force.feishuapp.net')) {
136
+ return 'https://force.feishu.cn';
137
+ }
138
+ if (origin.includes('force-pre.feishuapp.net')) {
139
+ return 'https://force.feishu-pre.cn';
140
+ }
135
141
  // force BOE环境
136
142
  if (origin.includes('force.byted.org')) {
137
143
  return 'https://force.feishu-boe.cn';
package/lib/preset.js CHANGED
@@ -258,6 +258,8 @@ function createRecommendRspackConfig(options) {
258
258
  // 定义允许的域名白名单
259
259
  const allowedOrigins = [
260
260
  'https://force.feishu-boe.cn',
261
+ 'https://force.feishu.cn',
262
+ 'https://force.feishu-pre.cn',
261
263
  'https://miaoda.feishu.cn',
262
264
  'https://miaoda.feishu-boe.cn',
263
265
  'https://miaoda.feishu-pre.cn',
@@ -279,11 +281,6 @@ function createRecommendRspackConfig(options) {
279
281
  target: `http://localhost:${serverPort}`,
280
282
  changeOrigin: true,
281
283
  },
282
- {
283
- context: [`${clientBasePath}/__innerapi__`],
284
- target: `http://localhost:${serverPort}`,
285
- changeOrigin: true,
286
- },
287
284
  {
288
285
  context: (pathname, req) => {
289
286
  // 代理所有请求 HTML 响应的请求(页面路由)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/fullstack-rspack-preset",
3
- "version": "1.0.21-alpha.0",
3
+ "version": "1.0.21-alpha.2",
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.8-alpha.0",
34
+ "@lark-apaas/devtool-kits": "^1.2.5",
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",