Skip to content

Commit 5b7764c

Browse files
authored
Fix typings to match actual exports. Allows import { swc } from ...
1 parent 5cc7fc5 commit 5b7764c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/swc/types/index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ import type { Options } from '../src';
88
* @param options - Plugin options.
99
* @returns Plugin instance.
1010
*/
11-
export default function swc(options?: Options): Plugin;
11+
export function swc(options?: Options): Plugin;
12+
export default swc;

0 commit comments

Comments
 (0)