Commit 997926bb by QuentinHsu

fix(classic): fix classic web build failures

- replace the Slack OAuth icon with FaSlack from react-icons/fa to avoid the missing SiSlack export.
- add a classic Rsbuild alias for date-fns so Semi resolves its compatible date-fns v2 dependency.
parent b6e8ff9d
......@@ -10,6 +10,10 @@ const semiUiDir = path.resolve(
path.dirname(require.resolve('@douyinfe/semi-ui')),
'../..',
)
const semiDateFnsDir = path.resolve(
semiUiDir,
'../semi-foundation/node_modules/date-fns',
)
export default defineConfig(({ envMode }) => {
const env = loadEnv({ mode: envMode, prefixes: ['VITE_'] })
......@@ -47,6 +51,7 @@ export default defineConfig(({ envMode }) => {
semiUiDir,
'dist/css/semi.css',
),
'date-fns': semiDateFnsDir,
},
},
html: {
......
......@@ -99,13 +99,12 @@ import {
SiOkta,
SiOpenid,
SiReddit,
SiSlack,
SiTelegram,
SiTwitch,
SiWechat,
SiX,
} from 'react-icons/si';
import { FaLinkedin } from 'react-icons/fa';
import { FaLinkedin, FaSlack } from 'react-icons/fa';
// 获取侧边栏Lucide图标组件
export function getLucideIcon(key, selected = false) {
......@@ -512,7 +511,7 @@ const oauthProviderIconMap = {
linkedin: FaLinkedin,
x: SiX,
twitter: SiX,
slack: SiSlack,
slack: FaSlack,
telegram: SiTelegram,
wechat: SiWechat,
keycloak: SiKeycloak,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment