diff --git a/src/index.ts b/src/index.ts index 45a3fe4..ee45b92 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,15 +4,14 @@ import os from 'os' import { fileURLToPath } from 'url' import path from 'path' import colors from 'picocolors' -import { Plugin, loadEnv, UserConfig, ConfigEnv, ResolvedConfig, SSROptions, PluginOption } from 'vite' +import { Plugin, loadEnv, UserConfig, ConfigEnv, ResolvedConfig, SSROptions, PluginOption, Rollup } from 'vite' import fullReload, { Config as FullReloadConfig } from 'vite-plugin-full-reload' -import { InputOption } from "rollup" interface PluginConfig { /** * The path or paths of the entry points to compile. */ - input: InputOption + input: Rollup.InputOption /** * Laravel's public directory. @@ -38,7 +37,7 @@ interface PluginConfig { /** * The path of the SSR entry point. */ - ssr?: InputOption + ssr?: Rollup.InputOption /** * The directory where the SSR bundle should be written. @@ -376,7 +375,7 @@ function resolveBase(config: Required, assetUrl: string): string { /** * Resolve the Vite input path from the configuration. */ -function resolveInput(config: Required, ssr: boolean): InputOption|undefined { +function resolveInput(config: Required, ssr: boolean): Rollup.InputOption|undefined { if (ssr) { return config.ssr }