Home / File/ _config.js — svelte Source File

_config.js — svelte Source File

Architecture documentation for _config.js, a javascript file in the svelte codebase. 1 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  8181c1e2_4424_177d_da2b_2012e96101af["_config.js"]
  fc06c886_51db_d0d2_6501_4080bb86736e["test.ts"]
  8181c1e2_4424_177d_da2b_2012e96101af --> fc06c886_51db_d0d2_6501_4080bb86736e
  style 8181c1e2_4424_177d_da2b_2012e96101af fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { test } from '../../test';

export default test({
	preprocess: {
		style: ({ content }) => {
			/** @type {string[]} */
			const dependencies = [];
			const code = content.replace(/@import '(.+)';/g, (match, $1) => {
				dependencies.push($1);
				return '/* removed */';
			});

			return { code, dependencies };
		}
	},

	dependencies: ['./foo.css']
});

Domain

Dependencies

Frequently Asked Questions

What does _config.js do?
_config.js is a source file in the svelte codebase, written in javascript. It belongs to the BuildSystem domain.
What does _config.js depend on?
_config.js imports 1 module(s): test.ts.
Where is _config.js in the architecture?
_config.js is located at packages/svelte/tests/preprocess/samples/dependencies/_config.js (domain: BuildSystem, directory: packages/svelte/tests/preprocess/samples/dependencies).

Analyze Your Own Codebase

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

Try Supermodel Free