Skip to content

Commit

Permalink
fix: 修复多层 outdir 下的文件夹不存在的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
LinLin00000000 committed Dec 7, 2023
1 parent 1f3b368 commit 5193a7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ export async function build(
const finalOutdir = path.join(fileDir, outdir)

if (!fs.existsSync(finalOutdir)) {
fs.mkdirSync(finalOutdir)
fs.mkdirSync(finalOutdir, {
recursive: true,
})
}

// 📦 配置 esbuild,让你的代码像魔法一样自动转化并打包。
Expand Down

0 comments on commit 5193a7d

Please sign in to comment.