Skip to content

Commit

Permalink
add mdx plugin to start of vite plugins instead of end
Browse files Browse the repository at this point in the history
  • Loading branch information
JReinhold committed Apr 14, 2024
1 parent 09af3bf commit 6fdb569
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/addons/docs/src/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ export const viteFinal = async (config: any, options: Options) => {
// add alias plugin early to ensure any other plugins that also add the aliases will override this
// eg. the preact vite plugin adds its own aliases
plugins.unshift(packageDeduplicationPlugin);
plugins.push(mdxPlugin(options));
// mdx plugin needs to be before any react plugins
plugins.unshift(mdxPlugin(options));

return config;
};
Expand Down

0 comments on commit 6fdb569

Please sign in to comment.