-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Incorrect default export of Vite plugin types under TS's Node16 …
…module resolution (#531)
- Loading branch information
1 parent
51f8c7f
commit 0efb604
Showing
2 changed files
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |