ModuleCompileOptions Type — svelte Architecture
Architecture documentation for the ModuleCompileOptions type/interface in index.d.ts from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 995d4649_6984_a1be_75db_377bc8d11704["ModuleCompileOptions"] 6bd9d090_a582_e05c_669e_d53d4e7245f2["index.d.ts"] 995d4649_6984_a1be_75db_377bc8d11704 -->|defined in| 6bd9d090_a582_e05c_669e_d53d4e7245f2 style 995d4649_6984_a1be_75db_377bc8d11704 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/types/index.d.ts lines 1147–1187
export interface ModuleCompileOptions {
/**
* If `true`, causes extra code to be added that will perform runtime checks and provide debugging information during development.
*
* @default false
*/
dev?: boolean;
/**
* If `"client"`, Svelte emits code designed to run in the browser.
* If `"server"`, Svelte emits code suitable for server-side rendering.
* If `false`, nothing is generated. Useful for tooling that is only interested in warnings.
*
* @default 'client'
*/
generate?: 'client' | 'server' | false;
/**
* Used for debugging hints and sourcemaps. Your bundler plugin will set it automatically.
*/
filename?: string;
/**
* Used for ensuring filenames don't leak filesystem information. Your bundler plugin will set it automatically.
* @default process.cwd() on node-like environments, undefined elsewhere
*/
rootDir?: string;
/**
* A function that gets a `Warning` as an argument and returns a boolean.
* Use this to filter out warnings. Return `true` to keep the warning, `false` to discard it.
*/
warningFilter?: (warning: Warning) => boolean;
/**
* Experimental options
* @since 5.36
*/
experimental?: {
/**
* Allow `await` keyword in deriveds, template expressions, and the top level of components
* @since 5.36
*/
async?: boolean;
};
}
Defined In
Source
Frequently Asked Questions
What is the ModuleCompileOptions type?
ModuleCompileOptions is a type/interface in the svelte codebase, defined in packages/svelte/types/index.d.ts.
Where is ModuleCompileOptions defined?
ModuleCompileOptions is defined in packages/svelte/types/index.d.ts at line 1147.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free