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

fix(imports): use explicit imports #2839

Merged
merged 2 commits into from
Nov 2, 2024
Merged

fix(imports): use explicit imports #2839

merged 2 commits into from
Nov 2, 2024

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Nov 2, 2024

Resolves #2833

Similar fix of #2837 for all built-in nitro auto imports. Using explicit entries, rollup can better sort the chunks order.


Tests for cloudflare had been updated since now with explicit behavior, we have cloudflare limitation that useRuntimeConfig() in ambient context (and before first request) does not have access to the environment variable bindings.

@pi0 pi0 self-assigned this Nov 2, 2024
Copy link

cloudflare-workers-and-pages bot commented Nov 2, 2024

Deploying nitrojs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6691511
Status: ✅  Deploy successful!
Preview URL: https://7070cc51.nitrojs.pages.dev
Branch Preview URL: https://fix-explicit-imports.nitrojs.pages.dev

View logs

@pi0 pi0 merged commit 615cc05 into v2 Nov 2, 2024
5 checks passed
@pi0 pi0 deleted the fix/explicit-imports branch November 2, 2024 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot access storage/_sharedRuntimeConfig before initialization
1 participant