Skip to content

Commit aa697cd

Browse files
authored
Use rollup types from Vite (#325)
* Use rollup types from Vite * fixup
1 parent c0c82ca commit aa697cd

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/index.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@ import os from 'os'
44
import { fileURLToPath } from 'url'
55
import path from 'path'
66
import colors from 'picocolors'
7-
import { Plugin, loadEnv, UserConfig, ConfigEnv, ResolvedConfig, SSROptions, PluginOption } from 'vite'
7+
import { Plugin, loadEnv, UserConfig, ConfigEnv, ResolvedConfig, SSROptions, PluginOption, Rollup } from 'vite'
88
import fullReload, { Config as FullReloadConfig } from 'vite-plugin-full-reload'
9-
import { InputOption } from "rollup"
109

1110
interface PluginConfig {
1211
/**
1312
* The path or paths of the entry points to compile.
1413
*/
15-
input: InputOption
14+
input: Rollup.InputOption
1615

1716
/**
1817
* Laravel's public directory.
@@ -38,7 +37,7 @@ interface PluginConfig {
3837
/**
3938
* The path of the SSR entry point.
4039
*/
41-
ssr?: InputOption
40+
ssr?: Rollup.InputOption
4241

4342
/**
4443
* The directory where the SSR bundle should be written.
@@ -376,7 +375,7 @@ function resolveBase(config: Required<PluginConfig>, assetUrl: string): string {
376375
/**
377376
* Resolve the Vite input path from the configuration.
378377
*/
379-
function resolveInput(config: Required<PluginConfig>, ssr: boolean): InputOption|undefined {
378+
function resolveInput(config: Required<PluginConfig>, ssr: boolean): Rollup.InputOption|undefined {
380379
if (ssr) {
381380
return config.ssr
382381
}

0 commit comments

Comments
 (0)