Skip to content

Commit

Permalink
fix(#181): avoid closure
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re committed Feb 2, 2024
1 parent f69a175 commit ee329e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/vite-plugin-astro-icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ interface PluginContext extends Pick<AstroConfig, "root" | "output"> {
logger: AstroIntegrationLogger;
}

let collections: AstroIconCollectionMap | undefined;
export function createPlugin(
{ include = {}, iconDir = "src/icons", svgoOptions }: IntegrationOptions,
ctx: PluginContext,
): Plugin {
let collections: AstroIconCollectionMap | undefined;
const { root } = ctx;
const virtualModuleId = "virtual:astro-icon";
const resolvedVirtualModuleId = "\0" + virtualModuleId;
Expand Down

0 comments on commit ee329e8

Please sign in to comment.