`outDir is not inside project root and will not be emptied` warning in vite
wonkyDD opened this issue · comments
Describe the bug
In each package built with vite, log shows the following warning.
Here is a case for devtools-panel package.
(!) outDir chrome-extension-boilerplate-react-vite/devtools-panel/dist is not inside project root
and will not be emptied. Use --emptyOutDir to override.
Is it really the right approach to add --emptyOutDir
to all commands involving Vite?
Given the current repository structure, it seems it might be structurally difficult to eliminate these warnings 🧐
To Reproduce
- git clone
- pnpm i && pnpm dev
Expected behavior
warning disappears during the build.
Fixed~!