sveltekit_shim_env.ts

Declarations
#

view source

render_env_shim_module
#

sveltekit_shim_env.ts view source

(dev: boolean, mode: "static" | "dynamic", visibility: "public" | "private", public_prefix?: string, private_prefix?: string, env_dir?: string | undefined, env_files?: string[] | undefined, ambient_env?: Record<...> | undefined): string

Generates a module shim for SvelteKit's $env imports.

dev

type boolean

mode

type "static" | "dynamic"

visibility

type "public" | "private"

public_prefix

type string
default 'PUBLIC_'

private_prefix

type string
default ''

env_dir?

type string | undefined
optional

env_files?

type string[] | undefined
optional

ambient_env?

type Record<string, string | undefined> | undefined
optional

returns

string

Depends on
#

Imported by
#