Skip to content

Commit

Permalink
feat: prioritize user installation of babel-plugin-react-compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
bin.liu committed Jun 13, 2024
1 parent ea77e71 commit 6cd412d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/preset-umi/src/features/forget/forget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ export default (api: IApi) => {
...memo,
extraBabelPlugins: [
...(memo.extraBabelPlugins || []),
[require.resolve('babel-plugin-react-compiler'), ReactCompilerConfig],
[
require.resolve('babel-plugin-react-compiler', { paths: [api.cwd] }),
ReactCompilerConfig,
],
],
};
});
Expand Down

0 comments on commit 6cd412d

Please sign in to comment.