We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98b621d commit 3e6729bCopy full SHA for 3e6729b
packages/plugin/vite/src/VitePlugin.ts
@@ -55,7 +55,7 @@ export default class VitePlugin extends PluginBase<VitePluginConfig> {
55
prePackage: [
56
namedHookWithTaskFn<'prePackage'>(async () => {
57
this.isProd = true;
58
- await fs.rmdir(this.baseDir, { recursive: true });
+ await fs.rm(this.baseDir, { recursive: true, force: true });
59
60
await Promise.all([this.build(), this.buildRenderer()]);
61
}, 'Building vite bundles'),
@@ -67,7 +67,7 @@ export default class VitePlugin extends PluginBase<VitePluginConfig> {
67
if (VitePlugin.alreadyStarted) return false;
68
VitePlugin.alreadyStarted = true;
69
70
71
72
return {
73
tasks: [
0 commit comments