Skip to content

Commit

Permalink
fix: fixed checking for tsx support (#416)
Browse files Browse the repository at this point in the history
* fix: fixed checking for tsx support

* fix: fixed checking for tsx support

---------

Co-authored-by: Patrick Lynch <{ID}+{username}@users.noreply.github.com>
  • Loading branch information
AhsokaT and Patrick Lynch committed Jul 1, 2024
1 parent c55d139 commit 3e3a404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/strategies/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function checkProcessArgv(name: string) {
}

function checkPreloadModules(name: string) {
return '_preload_modules' in process && (process._preload_modules as string[]).includes(name);
return '_preload_modules' in process && (process._preload_modules as string[]).some((module) => module.includes(name));
}

function checkEnvVariable(name: string, value?: string) {
Expand Down

0 comments on commit 3e3a404

Please sign in to comment.