diff --git a/desktop/pkg-lib/src/runBuild.tsx b/desktop/pkg-lib/src/runBuild.tsx index 4f300af8abd..e07e14b4b86 100644 --- a/desktop/pkg-lib/src/runBuild.tsx +++ b/desktop/pkg-lib/src/runBuild.tsx @@ -154,6 +154,8 @@ export default async function bundlePlugin( const bundleConfigs: RunBuildConfig[] = []; + await fs.remove(path.dirname(plugin.entry)); + await fs.ensureDir(path.dirname(plugin.entry)); bundleConfigs.push({ pluginDir,