Skip to content

Commit

Permalink
fix: fix judgement
Browse files Browse the repository at this point in the history
  • Loading branch information
ModyQyW committed Jun 9, 2023
1 parent 81bd03a commit 4d98bcd
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,17 @@ export const enableReactNative =
export const enableReact =
isPackageExists('react') || Boolean(process.env.ENABLE_REACT) || enableNext || enableReactNative;

export const enableSolid = isPackageExists('solid-js') || Boolean(process.env.ENABLE_SOLID);
export const enableSolidStart =
isPackageExists('solid-start') || Boolean(process.env.ENABLE_SOLID_START);

export const enableSolid =
isPackageExists('solid-js') || Boolean(process.env.ENABLE_SOLID) || enableSolidStart;

export const enableSvelteKit =
isPackageExists('@sveltejs/kit') || Boolean(process.env.ENABLE_SVELTE_KIT);

export const enableSvelte =
isPackageExists('svelte') || Boolean(process.env.ENABLE_SVELTE) || enableSvelteKit;

export const enableMiniprogram =
isPackageExists('@dcloudio/vite-plugin-uni') ||
Expand Down

0 comments on commit 4d98bcd

Please sign in to comment.