Skip to content

Commit 0efb604

Browse files
authored
fix: Incorrect default export of Vite plugin types under TS's Node16 module resolution (#531)
1 parent 51f8c7f commit 0efb604

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/fluffy-horses-crash.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@prefresh/vite': patch
3+
---
4+
5+
Fix for incorrect default export of types under TS's Node16 module resolution

packages/vite/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { FilterPattern } from '@rollup/pluginutils';
22
import { Plugin } from 'vite';
33

4-
export interface Options {
4+
interface Options {
55
parserPlugins?: readonly string[];
66
include?: FilterPattern;
77
exclude?: FilterPattern;
88
}
99

1010
declare const prefreshPlugin: (options?: Options) => Plugin;
1111

12-
export default prefreshPlugin;
12+
export = prefreshPlugin;

0 commit comments

Comments
 (0)