Skip to content

Commit 54a9017

Browse files
gwynneshellscape
andauthored
fix(swc): fix typings to match actual exports (#1985)
Fix typings to match actual exports. Allows `import { swc } from ...` Co-authored-by: Andrew Powell <shellscape@users.noreply.github.com>
1 parent 0abd95b commit 54a9017

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)