Skip to content

Commit f452dd2

Browse files
committed
chore: update semi-ui webpack config
1 parent 518ad46 commit f452dd2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/semi-ui/aiChatDialogue/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class AIChatDialogue extends BaseComponent<AIChatDialogueProps, AIChatDialogueSt
5656
style: PropTypes.object,
5757
renderConfig: PropTypes.object,
5858
renderHintBox: PropTypes.func,
59-
renderDialogueContentItem: PropTypes.func,
59+
renderDialogueContentItem: PropTypes.object,
6060
onAnnotationClick: PropTypes.func,
6161
onChatsChange: PropTypes.func,
6262
onFileClick: PropTypes.func,

packages/semi-ui/webpack.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ module.exports = function ({ minimize }) {
5252
test: /semi-icons\/.+\.css$/,
5353
use: 'null-loader'
5454
},
55-
{ test: /\.scss$/, use: 'null-loader' },
55+
{ test: /\.s?css$/, use: 'null-loader' },
5656
]
5757
},
5858
optimization: {
@@ -75,7 +75,8 @@ module.exports = function ({ minimize }) {
7575
"@douyinfe/semi-icons": path.resolve(__dirname, "../semi-icons"),
7676
"@douyinfe/semi-illustrations": path.resolve(__dirname, "../semi-illustrations"),
7777
"@douyinfe/semi-animation": path.resolve(__dirname, "../semi-animation"),
78-
"@douyinfe/semi-animation-react": path.resolve(__dirname, "../semi-animation-react")
78+
"@douyinfe/semi-animation-react": path.resolve(__dirname, "../semi-animation-react"),
79+
"react/jsx-runtime": path.join(require.resolve("react"), "..", "jsx-runtime.js")
7980
},
8081
},
8182
externals: {

0 commit comments

Comments
 (0)