Jonghakseo / chrome-extension-boilerplate-react-vite

Chrome Extension Boilerplate with React + Vite + Typescript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`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

  1. git clone
  2. pnpm i && pnpm dev

Expected behavior

warning disappears during the build.

Fixed~!