From 569df8a3fe69adcaf041edca87f97d6ca268c006 Mon Sep 17 00:00:00 2001 From: sapphi-red <49056869+sapphi-red@users.noreply.github.com> Date: Mon, 14 Apr 2025 18:00:35 +0900 Subject: [PATCH 1/2] Use rollup types from Vite --- src/index.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index 45a3fe4..cb4c776 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. From 7227e4d578da65f43ee78d0e7a900bd01f7b327f Mon Sep 17 00:00:00 2001 From: sapphi-red <49056869+sapphi-red@users.noreply.github.com> Date: Mon, 14 Apr 2025 18:04:33 +0900 Subject: [PATCH 2/2] fixup --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index cb4c776..ee45b92 100644 --- a/src/index.ts +++ b/src/index.ts @@ -375,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 }