ParsedSvelteConfig The parsed SvelteKit config for the cwd, cached globally at the module level.
5 declarations
ParsedSvelteConfig The parsed SvelteKit config for the cwd, cached globally at the module level.
({ dir, config_filename, }?: { dir?: string | undefined; config_filename?: string | undefined; }): Promise<Config | null> Loads a SvelteKit config at dir.
__0{ dir?: string | undefined; config_filename?: string | undefined; }EMPTY_OBJECTPromise<Config | null> null if no config is found
({ dir_or_config, config_filename, }?: { dir_or_config?: string | Config | undefined; config_filename?: string | undefined; }): Promise<ParsedSvelteConfig> Returns Gro-relevant properties of a SvelteKit config as a convenience wrapper around load_svelte_config. Needed because SvelteKit doesn't expose its config resolver.
__0{ dir_or_config?: string | Config | undefined; config_filename?: string | undefined; }EMPTY_OBJECTPromise<ParsedSvelteConfig> ParsedSvelteConfig A subset of SvelteKit's config in a form that Gro uses
because SvelteKit doesn't expose its config resolver.
Flattens things out to keep them simple and easy to pass around,
and doesn't deal with most properties, but includes the full svelte_config.
The base and assets in particular are renamed for clarity with Gro's internal systems,
so these properties become first-class vocabulary inside Gro.
svelte_configSvelteConfig | nullaliasRecord<string, string>base_url'' | `/${string}` | undefinedassets_url'' | `http://${string}` | `https://${string}` | undefinedassets_pathSame as the SvelteKit files.assets.
stringlib_pathSame as the SvelteKit files.lib.
stringroutes_pathSame as the SvelteKit files.routes.
stringenv_dirstring | undefinedprivate_prefixstring | undefinedpublic_prefixstring | undefinedsvelte_compile_optionsCompileOptionssvelte_compile_module_optionsModuleCompileOptionssvelte_preprocessorsPreprocessorGroup | Array<PreprocessorGroup> | undefined({ dev, generate, filename, rootDir, warningFilter, }: CompileOptions): ModuleCompileOptions __0CompileOptionsModuleCompileOptions