Vite legacy build files deleted during build?

We have used vite legacy plugin

If we run npm run build commad, we see three files generated polyfill.js index.js and index-legacy.js.

After running npm run cordova-android-build command, it seems that the legacy and polyfill files are removed from cordova build folder.

you can disable/remove node ./build/build-cordova.js script from package json scripts, this command creates IIFE version without modules