From f5daa65a0b65c52c2be3f153add4d425c332918f Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Wed, 27 Dec 2023 18:45:38 +0100 Subject: [PATCH] refactor: rename plugin options export --- src/plugin.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugin.ts b/src/plugin.ts index 59a73b1..30ea320 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -7,7 +7,7 @@ import { sha1 } from "./_utils"; const WASM_EXTERNAL_ID = "\0unwasm:external:"; -export interface WasmOptions { +export interface UnwasmPluginOptions { /** * Direct import the wasm file instead of bundling, required in Cloudflare Workers * @@ -23,7 +23,7 @@ export interface WasmOptions { lazy?: boolean; } -const unplugin = createUnplugin((opts) => { +const unplugin = createUnplugin((opts) => { type WasmAsset = { name: string; source: Buffer; @@ -147,7 +147,7 @@ const unplugin = createUnplugin((opts) => { }; }); -const rollup = unplugin.rollup as (opts: WasmOptions) => RollupPlugin; +const rollup = unplugin.rollup as (opts: UnwasmPluginOptions) => RollupPlugin; export default { rollup,