index.ts 349 B

12345678910111213141516171819
  1. import { unplugin } from 'vite-plugin-unplugin'
  2. export const createUnPlugin = (env: Record<string, string>) => {
  3. return unplugin({
  4. env,
  5. imports: [
  6. 'vue',
  7. 'pinia',
  8. 'vue-i18n',
  9. 'vue-router',
  10. '@vueuse/core',
  11. {
  12. axios: [['default', 'axios']],
  13. },
  14. ],
  15. resolvers: [],
  16. dirs: [],
  17. })
  18. }