Debug label not set in vite
schiller-manuel opened this issue · comments
As a quick fix you can update your vite config:
import { defineConfig } from 'vite'
// ...
export default defineConfig({
// ...
define: {
'process.env': {}
}
})
But maybe we should update the check to use the import.meta.env.MODE
instead
https://vitejs.dev/guide/env-and-mode.html
Thanks for the workaround!
But maybe we should update the check to use the
import.meta.env.MODE
instead https://vitejs.dev/guide/env-and-mode.html
This would then only work in vite... which is fine for but maybe not for other users of this library :D
I'm not willing to create a special check for every bundler that pops up in node. The process
check is fairly standard in node libraries including React.