Skip to content

Commit

Permalink
Make both plugin options optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan-Shields authored Dec 10, 2023
1 parent 03d9c17 commit 6b3ba50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ export interface PluginConfig {
'dashboard/*.{js,ts}': './src/dashboard/template.html',
}
*/
inputs: { [key: string]: string }
inputs?: { [key: string]: string } | undefined

/** Base directory for input-file paths
* @default './src'
*/
srcDir: string
srcDir?: string | undefined
}

export default function viteNodeCGPlugin(pluginConfig: PluginConfig): Plugin {
Expand Down

0 comments on commit 6b3ba50

Please sign in to comment.