feat: init
This commit is contained in:
32
node_modules/unwasm/dist/plugin/index.d.mts
generated
vendored
Normal file
32
node_modules/unwasm/dist/plugin/index.d.mts
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
import { Plugin } from "rollup";
|
||||
|
||||
//#region src/plugin/shared.d.ts
|
||||
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;
|
||||
/**
|
||||
* Suppress all warnings from the plugin.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
silent?: boolean;
|
||||
}
|
||||
//#endregion
|
||||
//#region src/plugin/index.d.ts
|
||||
declare function unwasm(opts: UnwasmPluginOptions): Plugin;
|
||||
/** @deprecated use unwasm export */
|
||||
declare const rollup: typeof unwasm;
|
||||
//#endregion
|
||||
export { type UnwasmPluginOptions, rollup, unwasm };
|
||||
Reference in New Issue
Block a user