Skip to content

Commit

Permalink
fix: typescript error
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Jan 4, 2022
1 parent dce43ac commit 5f55a13
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/plugin-react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { ParserOptions, TransformOptions, types as t } from '@babel/core'
import * as babel from '@babel/core'
import { createFilter } from '@rollup/pluginutils'
import resolve from 'resolve'
import type { Plugin, PluginOption, ResolvedConfig } from 'vite'
import type { Plugin, PluginOption } from 'vite'
import {
addRefreshWrapper,
isRefreshBoundary,
Expand Down Expand Up @@ -56,7 +56,10 @@ declare module 'vite' {
/**
* Manipulate the Babel options of `@vitejs/plugin-react`
*/
reactBabel?: (options: ReactBabelOptions, config: ResolvedConfig) => void
reactBabel?: (
options: ReactBabelOptions,
config: import('vite').ResolvedConfig
) => void
}
}
}
Expand Down

0 comments on commit 5f55a13

Please sign in to comment.