Skip to content

Commit

Permalink
fix missing plugin options object
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott committed Dec 3, 2020
1 parent 9648e1a commit 9461f8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snowpack/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ function loadPlugins(
): {plugins: SnowpackPlugin[]; extensionMap: Record<string, string>} {
const plugins: SnowpackPlugin[] = [];

function execPluginFactory(pluginFactory: any, pluginOptions?: any): SnowpackPlugin {
function execPluginFactory(pluginFactory: any, pluginOptions: any = {}): SnowpackPlugin {
let plugin: SnowpackPlugin | null = null;
plugin = pluginFactory(config, pluginOptions) as SnowpackPlugin;
return plugin;
Expand Down

1 comment on commit 9461f8b

@vercel
Copy link

@vercel vercel bot commented on 9461f8b Dec 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.