Skip to content

Commit

Permalink
fix: type error during svelte init
Browse files Browse the repository at this point in the history
  • Loading branch information
pckilgore authored Dec 8, 2024
1 parent eece72c commit 3619b61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/create-svelte-parsers.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export function createSvelteParsers() {
try {
var { parsers } = require('prettier-plugin-svelte');
const { parsers } = require('prettier-plugin-svelte');
return { parsers }
} catch {
return {};
return { parsers: {} };
}
return { parsers };
}

0 comments on commit 3619b61

Please sign in to comment.