Hello, in my project, I used the Vite environment variable syntax import.meta.env.VITE_BUILD_ENV. Through my testing, I found that if the code contains this, it will throw an error when parsing the AST.
/packages/cradle-compiler/node_modules/gogocode/src/js-core/core.js:155
throw new Error(buildAstByAstStr failed:${str})
^
Error: buildAstByAstStr failed:
It works fine when it's removed.
How should I handle this?
Hello, in my project, I used the Vite environment variable syntax
import.meta.env.VITE_BUILD_ENV
. Through my testing, I found that if the code contains this, it will throw an error when parsing the AST./packages/cradle-compiler/node_modules/gogocode/src/js-core/core.js:155 throw new Error(
buildAstByAstStr failed:${str}
) ^ Error: buildAstByAstStr failed:It works fine when it's removed. How should I handle this?