Description
Running the Chartlets demo UI locally with:
cd chartlets.js/packages/demo
npm run dev
currently starts the Vite dev server, but emits two warnings:
(!) Your Vite config uses features that are unsupported by configLoader: 'native'
- __dirname (vite.config.ts:15:20). Use import.meta.dirname instead
[vite:react-swc] We recommend switching to @vitejs/plugin-react for improved performance as no swc plugins are used.
The same Vite config patterns are also used in the library package.
Expected behavior
The demo and library Vite configs should be compatible with Vite's upcoming native config loader behavior and should not use the SWC React plugin when no SWC plugins are configured.
Actual behavior
The frontend packages still use:
__dirname in Vite config files
@vitejs/plugin-react-swc although no SWC plugins are configured
Description
Running the Chartlets demo UI locally with:
cd chartlets.js/packages/demo npm run devcurrently starts the Vite dev server, but emits two warnings:
The same Vite config patterns are also used in the library package.
Expected behavior
The demo and library Vite configs should be compatible with Vite's upcoming native config loader behavior and should not use the SWC React plugin when no SWC plugins are configured.
Actual behavior
The frontend packages still use:
__dirnamein Vite config files@vitejs/plugin-react-swcalthough no SWC plugins are configured