diff --git a/plugin.js b/plugin.js index 0071a96..df1597d 100644 --- a/plugin.js +++ b/plugin.js @@ -123,7 +123,7 @@ class WasmPackPlugin { _makeEmpty() { try { - fs.mkdirSync(this.outDir) + fs.mkdirSync(this.outDir, {recursive: true}) } catch (e) { if (e.code !== 'EEXIST') { throw e