Skip to content

Commit

Permalink
Pass empty object to api plugin (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolai-cc authored Sep 3, 2022
1 parent ca1e39d commit 81efb4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/plugins/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { templateDefaultId } from './template.js'
* @param {import('..').Options} [options]
* @returns {import('vite').Plugin}
*/
export function apiPlugin(options) {
export function apiPlugin(options = {}) {
/** @type {Map<string, string>} */
const virtualIdToCode = new Map()

Expand Down

0 comments on commit 81efb4c

Please sign in to comment.