This commit is contained in:
黄心宇 2024-01-15 15:06:28 +08:00
parent 5159b90e42
commit 54cf201a51
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ const serverConfig = {
externals: [
nodeExternals(), // 忽略 Node.js 核心模块
// 自定义的外部模块
{ "react": "React", "react-dom": "ReactDOM" }
{ "react": "React", "react-dom": "ReactDOM" ,"alex": "Alex"}
],
resolve: {
// This allows you to set a fallback for where Webpack should look for modules.