Skip to content

Commit 697166f

Browse files
authored
Merge pull request #52 from andreiio/fix/check-import-meta
Reapply fix for VITE_LARAVEL_VUE_I18N_HAS_PHP error
2 parents 1ad3516 + 64be72e commit 697166f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/has-php-translations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function checkProcessEnv(): boolean {
88

99
function checkImportMeta(): boolean {
1010
/** @ts-ignore */
11-
return typeof import.meta.env.VITE_LARAVEL_VUE_I18N_HAS_PHP !== 'undefined' &&
11+
return typeof import.meta.env !== 'undefined' &&
1212
/** @ts-ignore */
1313
import.meta.env.VITE_LARAVEL_VUE_I18N_HAS_PHP
1414
? true

0 commit comments

Comments
 (0)