input vue.config.js options, patch corresponding vite.config.js options
- we have vue-cli-plugin-vite for vue-cli, which we can get vue.config.js options
- pass in vue.config.js options and transform for vite.config.ts options
- not recommended for standalone use, it is underlying
vue-cli-plugin-vite
- many code from https://github.com/anncwb/vite-plugin-import-context