preset-vite icon indicating copy to clipboard operation
preset-vite copied to clipboard

warning: Top-level "this" will be replaced with undefined since this file is an ECMAScript module

Open akbr opened this issue 2 years ago • 0 comments

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?

akbr avatar Sep 08 '22 01:09 akbr