From e39ed8cec8608a3dffb8b363741db6d74f47a2a4 Mon Sep 17 00:00:00 2001 From: Joel Chen Date: Fri, 26 Mar 2021 09:35:41 -0700 Subject: [PATCH] continue if can't make output dir for webpack --- packages/xarc-webpack/src/partials/output.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/xarc-webpack/src/partials/output.ts b/packages/xarc-webpack/src/partials/output.ts index 1dcbf6053..f2d45755c 100644 --- a/packages/xarc-webpack/src/partials/output.ts +++ b/packages/xarc-webpack/src/partials/output.ts @@ -32,7 +32,11 @@ module.exports = () => { // karma 3.x uses fs.mkdirSync to create output and it fails if the output has multi dirs // so create the output path here to help it get pass that. - mkdirp.sync(path); + try { + mkdirp.sync(path); + } catch { + // + } return { output: {