Skip to content

Commit 0cd8298

Browse files
Remove rollup type import for Vite 8 compatibility
Vite 8 replaces Rollup with Rolldown, so the `rollup` package is no longer available as a transitive dependency. Inline the type instead.
1 parent 2b5143d commit 0cd8298

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/vite/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import glob from 'fast-glob';
22
import { existsSync, readFileSync, unlinkSync } from 'fs';
33
import { resolve } from 'path';
4-
import { OutputOptions } from 'rollup';
54
import { Plugin, ResolvedConfig, UserConfig } from 'vite';
65

76
import FlareApi from './flareApi';
@@ -66,7 +65,7 @@ export default function flareSourcemapUploader({
6665
base += base.endsWith('/') ? '' : '/';
6766
},
6867

69-
async writeBundle(outputConfig: OutputOptions) {
68+
async writeBundle(outputConfig: { dir?: string }) {
7069
if (!enableUploadingSourcemaps) {
7170
return;
7271
}

0 commit comments

Comments
 (0)