Skip to content

Commit

Permalink
fix: Incorrect default export of Vite plugin types under TS's Node16 …
Browse files Browse the repository at this point in the history
…module resolution (#531)
  • Loading branch information
rschristian committed Dec 24, 2023
1 parent 51f8c7f commit 0efb604
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/fluffy-horses-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@prefresh/vite': patch
---

Fix for incorrect default export of types under TS's Node16 module resolution
4 changes: 2 additions & 2 deletions packages/vite/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { FilterPattern } from '@rollup/pluginutils';
import { Plugin } from 'vite';

export interface Options {
interface Options {
parserPlugins?: readonly string[];
include?: FilterPattern;
exclude?: FilterPattern;
}

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

export default prefreshPlugin;
export = prefreshPlugin;

0 comments on commit 0efb604

Please sign in to comment.