We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7cacf96 commit 487a4aaCopy full SHA for 487a4aa
1 file changed
src/getBabelCommonConfig.ts
@@ -1,13 +1,13 @@
1
-import { resolve, isThereHaveBrowserslistConfig } from './utils/projectHelper';
2
import fs from 'fs-extra';
3
-import type { TransformOptions } from '@babel/core';
+import type { PluginItem, TransformOptions } from '@babel/core';
+import { resolve, isThereHaveBrowserslistConfig } from './utils/projectHelper';
4
5
interface BabelConfig extends TransformOptions {
6
cacheDirectory?: boolean;
7
}
8
9
export default function getBabelCommonConfig(modules?: boolean): BabelConfig {
10
- const plugins = [
+ const plugins: PluginItem[] = [
11
[
12
resolve('babel-plugin-react-compiler'),
13
{
0 commit comments