Skip to content

Commit

Permalink
types: fix missing export type for esm-shim
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Feb 2, 2024
1 parent 2a19079 commit ffa8c0c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/esm-shim/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import type { Plugin } from 'rollup';
import type { Plugin, SourceMapInput } from 'rollup';

interface Output {
code: string;
map?: SourceMapInput;
}

/**
* A Rollup plugin to replace cjs syntax for esm output bundles.
*
* @returns Plugin instance.
*/
export default function commonjsShim(): Plugin;
export function provideCJSSyntax(code: string): Output | null;

0 comments on commit ffa8c0c

Please sign in to comment.