Skip to content

Commit

Permalink
fix(esm-shim): missing exports in types (#1670)
Browse files Browse the repository at this point in the history
types: fix missing export type for esm-shim
  • Loading branch information
huozhi authored Jun 5, 2024
1 parent e35d881 commit b778ba0
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 b778ba0

Please sign in to comment.