Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
支持preact
  • Loading branch information
rhliu1996 authored and innocces committed Dec 30, 2023
1 parent 20d3aba commit b7c8333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const supportFrameworks = ['react', ...reactLike];

export default (ctx: IPluginContext) => {
const { framework } = ctx.initialConfig;
if ((framework && !supportFrameworks.includes(framework)) || !getReactPath())
if ((framework && !supportFrameworks.includes(framework)) || !getReactPath(framework))
return;

ctx.modifyWebpackChain(({ chain, webpack }) => {
Expand Down

1 comment on commit b7c8333

@vercel
Copy link

@vercel vercel bot commented on b7c8333 Dec 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.