We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
std-env
NODE_ENV
When using isDevelopment and isProduction exports of std-env do not work since nuxt provides NODE_ENV using an static code replacement
isDevelopment
isProduction
This is a followup from unjs/std-env#45. We might as well consider this as not supported.
No response
The text was updated successfully, but these errors were encountered:
danielroe
Successfully merging a pull request may close this issue.
Environment
Reproduction
Describe the bug
When using
isDevelopment
andisProduction
exports ofstd-env
do not work since nuxt providesNODE_ENV
using an static code replacementstd-env
should use static analyzable syntax (Support staticNODE_ENV
detection unjs/std-env#45)std-env
should be transpiled by default to make sure Nuxt and Nitro can replace it inline (workaround in reproduction but commented out)std-env
to transpileAdditional context
This is a followup from unjs/std-env#45. We might as well consider this as not supported.
Logs
No response
The text was updated successfully, but these errors were encountered: