Post
have you tested to see what happens when you access a runtime-only variable at build time? it won't throw an error, the value will just _be_ an error. FWIW we're looking into doing something like this github.com/sveltejs/kit...
github.combreaking: replace `EnvVarConfig.static` with `EnvVarConfig.availability` by dummdidumm · Pull Request #16267 · sveltejs/kitThe static: boolean property on environment variable configs has been replaced by availability, which has four possible values:
'dynamic' (default, equivalent to the old static: false) — t...
Yes! We tried proxying the access and actually throw, but this just throws whenever it’s imported not when it’s used (since that’s not a feature JS supports - same problem as with signals). It’s not perfect but in all use cases we thought of this caused the build code to fail with a useful message.
0 reposts0 likes
No replies yet.