From d59c343753b778bc45b1ab5f4af37b0e89d4f59d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnaud=20Barr=C3=A9?= Date: Mon, 8 May 2023 09:50:54 +0200 Subject: [PATCH] fix: change warn to throw error --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 43f0e43..f569f38 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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", ); }