Skip to content

Commit

Permalink
fix: 删除core-js/modules预构建mac下vite4.4预构建不成功bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yuntian001 committed May 15, 2023
1 parent 8df8ed5 commit f6d7fc9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ export default async (configEnv: ConfigEnv): Promise<UserConfigExport> => {
'element-plus/es/components/message/style/css',
'element-plus/es/components/message-box/style/css',
'element-plus/es/components/notification/style/css',
//因为core-js为babel动态引入,这里手动设置core-js/modules预构建,如果babelHelpers不是runtime模式可忽略此选项
...fs.readdirSync(pathResolve('node_modules/core-js/modules')).map((name) => 'core-js/modules/' + name),
],
},
};
Expand Down

0 comments on commit f6d7fc9

Please sign in to comment.