Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import.meta.env 无法解析 #225

Open
ATQQ opened this issue Jun 2, 2023 · 1 comment
Open

import.meta.env 无法解析 #225

ATQQ opened this issue Jun 2, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@ATQQ
Copy link
Contributor

ATQQ commented Jun 2, 2023

无法解析 import.meta 语法

document.title = import.meta.env.VITE_APP_TITLE

目前解决方案

  fileText = fileText.replace(/import\.meta\.?/g, 'import_meta')
@ATQQ ATQQ added the bug Something isn't working label Jun 2, 2023
@actake
Copy link

actake commented Dec 25, 2023

实际上与这个问题解法一致:#140

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants