Skip to content

Commit

Permalink
fix: change warn to throw error
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBarre committed May 8, 2023
1 parent 810de09 commit d59c343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const react = (_options?: Options): PluginOption[] => {
mdxIndex >
config.plugins.findIndex((p) => p.name === "vite:react-swc")
) {
config.logger.warn(
throw new Error(
"[vite:react-swc] The MDX plugin should be placed before this plugin",
);
}
Expand Down

0 comments on commit d59c343

Please sign in to comment.