import { Plugin } from 'vite'; import { AddressInfo } from 'net'; declare module "rollup" { export interface RenderedChunk { viteMetadata?: ChunkMetadata; } } interface ChunkMetadata { importedAssets: Set; importedCss: Set; } type HashAlgorithm = false | "sha256" | "sha384" | "sha512"; type VitePluginSymfonyOptions = VitePluginSymfonyEntrypointsOptions & { /** * enable controllers.json loader for Symfony UX. * @default false */ stimulus: false | VitePluginSymfonyStimulusOptions; }; type VitePluginSymfonyPartialOptions = Omit, "stimulus"> & { stimulus?: boolean | string | Partial; }; type VitePluginSymfonyEntrypointsOptions = { /** * By default vite-plugin-symfony set vite option publicDir to false. * Because we don't want symfony entrypoint (index.php) and other files to * be copied into the build directory. * Related to this issue : https://github.com/lhapaipai/vite-bundle/issues/17 * * Vite plugin Symfony use sirv to serve public directory. * * If you want to force vite option publicDir to true, set servePublic to false. * * @default 'public' */ servePublic: false | string; /** * Refresh vite dev server when your twig templates are updated. * - array of paths to files to be watched, or glob patterns * - true : equivalent to ["templates/**\/*.twig"] * @default false * * for additional glob documentation, check out low-level library picomatch : https://github.com/micromatch/picomatch */ refresh: boolean | string[]; /** * If you specify vite `server.host` option to '0.0.0.0' (usage with Docker) * You probably need to configure your `viteDevServerHostname` to 'localhost'. * Related to this issue : https://github.com/lhapaipai/vite-bundle/issues/26 * * @default null */ viteDevServerHostname: null | string; /** * Add an integrity attribute to your