vite.config.ts 725 B

1234567891011121314151617181920212223242526
  1. import { defineConfig } from 'vite'
  2. import Vue from '@vitejs/plugin-vue'
  3. import * as CompilerSFC from 'vue/compiler-sfc'
  4. import { resolve } from 'node:path'
  5. export default defineConfig({
  6. plugins: [
  7. Vue({
  8. compiler: CompilerSFC,
  9. }),
  10. ],
  11. build: {
  12. rollupOptions: {
  13. input: {
  14. interop: resolve(import.meta.dirname, 'interop/index.html'),
  15. todomvc: resolve(import.meta.dirname, 'todomvc/index.html'),
  16. teleport: resolve(import.meta.dirname, 'teleport/index.html'),
  17. transition: resolve(import.meta.dirname, 'transition/index.html'),
  18. transitionGroup: resolve(
  19. import.meta.dirname,
  20. 'transition-group/index.html',
  21. ),
  22. },
  23. },
  24. },
  25. })