Skip to content

Commit a13ded6

Browse files
committed
fix: import.meta if it does not exist
1 parent 2c7714e commit a13ded6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ async function resolveLang(callable: Function, lang: string): Promise<LanguageJs
149149
typeof process !== 'undefined' && process.env?.LARAVEL_VUE_I18N_HAS_PHP
150150
? true
151151
: /** @ts-ignore */
152-
import.meta.env.VITE_LARAVEL_VUE_I18N_HAS_PHP
152+
typeof import.meta.env !== 'undefined' && import.meta.env.VITE_LARAVEL_VUE_I18N_HAS_PHP
153153
? true
154154
: false
155155

0 commit comments

Comments
 (0)