Skip to content

Commit

Permalink
修复问题: 修复没有导出default的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
chenbimo committed Jul 31, 2024
1 parent f5ed0b1 commit d327a9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dirs.forEach((dir) => {
if (stat.isFile() && file.endsWith('.js')) {
let fileName = basename(file, '.js');
libNames.push(`${fileName}`);
fileData.push(`export { yd_${dir}_${fileName} } from './lib/${dir}/${file}';\r\n`);
fileData.push(`export { default as yd_${dir}_${fileName} } from './lib/${dir}/${file}';\r\n`);
} else {
console.log(`${dir}/${file}不是一个函数文件`);
}
Expand Down

0 comments on commit d327a9f

Please sign in to comment.