Home / File/ tsconfig.runtime.json — svelte Source File

tsconfig.runtime.json — svelte Source File

Architecture documentation for tsconfig.runtime.json, a json file in the svelte codebase.

Entity Profile

Source Code

{
	"extends": "./tsconfig.json",
	"compilerOptions": {
		// Ensure we don't use any methods that are not available in all browser for a long period of time
		// so that people don't need to polyfill them. Example array.at(...) was introduced to Safari only in 2022
		"target": "es2021",
		"lib": ["es2021", "DOM", "DOM.Iterable"],
		"types": [] // prevent automatic inclusion of @types/node
	},
	"include": ["./src/"],
	// Compiler is allowed to use more recent methods; people using it in the browser are expected to know
	// how to polyfill missing methods. Also make sure to not include test files as these include Vitest
	// which then loads node globals.
	"exclude": ["./src/compiler/**/*", "./src/**/*.test.ts"]
}

Frequently Asked Questions

What does tsconfig.runtime.json do?
tsconfig.runtime.json is a source file in the svelte codebase, written in json.
Where is tsconfig.runtime.json in the architecture?
tsconfig.runtime.json is located at packages/svelte/tsconfig.runtime.json (directory: packages/svelte).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free