Skip to content
This repository was archived by the owner on Jul 24, 2025. It is now read-only.

Commit d59c343

Browse files
committed
fix: change warn to throw error
1 parent 810de09 commit d59c343

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const react = (_options?: Options): PluginOption[] => {
8484
mdxIndex >
8585
config.plugins.findIndex((p) => p.name === "vite:react-swc")
8686
) {
87-
config.logger.warn(
87+
throw new Error(
8888
"[vite:react-swc] The MDX plugin should be placed before this plugin",
8989
);
9090
}

0 commit comments

Comments
 (0)