preset-vite
preset-vite copied to clipboard
warning: Top-level "this" will be replaced with undefined since this file is an ECMAScript module
I started seeing this issue after updating vite just now.
[vite] hmr update /src/App.tsx
[vite] warning: Top-level "this" will be replaced with undefined since this file is an ECMAScript module
The config described here silences the warning just fine.
Perhaps this is something worth addressing in the preset library?