29 lines
666 B
TypeScript
Raw Normal View History

2025-09-05 14:59:21 +08:00
import { Plugin } from 'rollup';
interface UnwasmPluginOptions {
/**
* Directly import the `.wasm` files instead of bundling as base64 string.
*
* @default false
*/
esmImport?: boolean;
/**
* Avoid using top level await and always use a proxy.
*
* Useful for compatibility with environments that don't support top level await.
*
* @default false
*/
lazy?: boolean;
}
declare const rollup: (opts: UnwasmPluginOptions) => Plugin;
declare const _default: {
rollup: (opts: UnwasmPluginOptions) => Plugin;
};
// @ts-ignore
export = _default;
export { rollup };
export type { UnwasmPluginOptions };