vite-plugin-inspect.2cd7208c.d.mts 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import { FilterPattern } from '@rollup/pluginutils';
  2. interface Options {
  3. /**
  4. * Enable the inspect plugin in dev mode (could be some performance overhead)
  5. *
  6. * @default true
  7. */
  8. dev?: boolean;
  9. /**
  10. * Enable the inspect plugin in build mode, and output the report to `.vite-inspect`
  11. *
  12. * @default false
  13. */
  14. build?: boolean;
  15. /**
  16. * @deprecated use `dev` or `build` option instead.
  17. */
  18. enabled?: boolean;
  19. /**
  20. * Directory for build inspector UI output
  21. * Only work in build mode
  22. *
  23. * @default '.vite-inspect'
  24. */
  25. outputDir?: string;
  26. /**
  27. * Filter for modules to be inspected
  28. */
  29. include?: FilterPattern;
  30. /**
  31. * Filter for modules to not be inspected
  32. */
  33. exclude?: FilterPattern;
  34. /**
  35. * Base URL for inspector UI
  36. *
  37. * @default read from Vite's config
  38. */
  39. base?: string;
  40. /**
  41. * Print URL output silently in the terminal
  42. *
  43. * @default false
  44. */
  45. silent?: boolean;
  46. /**
  47. * Automatically open inspect page
  48. *
  49. * @default false
  50. */
  51. open?: boolean;
  52. /**
  53. * Remove version query `?v=xxx` and treat them as the same module
  54. *
  55. * @default true
  56. */
  57. removeVersionQuery?: boolean;
  58. }
  59. export type { Options as O };