Skip to content

Commit

Permalink
Always throw error when preprocessor fails
Browse files Browse the repository at this point in the history
Otherwise the parser in prettier fails downstream, and we lose the actual cause
  • Loading branch information
IanVS committed Jun 25, 2024
1 parent 648fb13 commit f015d2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/preprocessors/vue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export function vuePreprocessor(code: string, options: PrettierOptions) {
console.warn(
'[@ianvs/prettier-plugin-sort-imports]: Could not process .vue file. Please be sure that "@vue/compiler-sfc" is installed in your project.',
);
throw err;
}
throw err;
}
}

Expand Down

0 comments on commit f015d2e

Please sign in to comment.