Skip to content

Commit 487a4aa

Browse files
committed
update type
1 parent 7cacf96 commit 487a4aa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/getBabelCommonConfig.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { resolve, isThereHaveBrowserslistConfig } from './utils/projectHelper';
21
import fs from 'fs-extra';
3-
import type { TransformOptions } from '@babel/core';
2+
import type { PluginItem, TransformOptions } from '@babel/core';
3+
import { resolve, isThereHaveBrowserslistConfig } from './utils/projectHelper';
44

55
interface BabelConfig extends TransformOptions {
66
cacheDirectory?: boolean;
77
}
88

99
export default function getBabelCommonConfig(modules?: boolean): BabelConfig {
10-
const plugins = [
10+
const plugins: PluginItem[] = [
1111
[
1212
resolve('babel-plugin-react-compiler'),
1313
{

0 commit comments

Comments
 (0)