UNPKG

astro

Version:

Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

9 lines (8 loc) • 472 B
// Re-export shim. Importing `provideSession` from `./provider.js` (rather // than `./handler.js` directly) lets the Vite plugin swap this file for // `./provider-disabled.js` when `session: false` is configured, so Rollup // can tree-shake `./runtime.js` out of the SSR bundle. // // At runtime in environments without Vite (Node-loaded `dist/`, library // tooling), this file resolves normally and keeps the real provider. export { provideSession } from "./handler.js";