Skip to content

Commit

Permalink
refactor: rename plugin options export
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Dec 27, 2023
1 parent 0073bfd commit f5daa65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand All @@ -23,7 +23,7 @@ export interface WasmOptions {
lazy?: boolean;
}

const unplugin = createUnplugin<WasmOptions>((opts) => {
const unplugin = createUnplugin<UnwasmPluginOptions>((opts) => {
type WasmAsset = {
name: string;
source: Buffer;
Expand Down Expand Up @@ -147,7 +147,7 @@ const unplugin = createUnplugin<WasmOptions>((opts) => {
};
});

const rollup = unplugin.rollup as (opts: WasmOptions) => RollupPlugin;
const rollup = unplugin.rollup as (opts: UnwasmPluginOptions) => RollupPlugin;

export default {
rollup,
Expand Down

0 comments on commit f5daa65

Please sign in to comment.