Home / File/ _config.js — svelte Source File

_config.js — svelte Source File

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

Entity Profile

Dependency Diagram

graph LR
  d3afbd21_c868_5dcf_9410_cf4749b711bc["_config.js"]
  032186a9_8a8b_b603_4335_6ade22d767cb["test.ts"]
  d3afbd21_c868_5dcf_9410_cf4749b711bc --> 032186a9_8a8b_b603_4335_6ade22d767cb
  740dc682_957b_322a_475e_aac0e8ee02bc["helpers.js"]
  d3afbd21_c868_5dcf_9410_cf4749b711bc --> 740dc682_957b_322a_475e_aac0e8ee02bc
  f63dfb1f_0f71_c394_6a93_89f93b04f5eb["magic_string_preprocessor_result"]
  d3afbd21_c868_5dcf_9410_cf4749b711bc --> f63dfb1f_0f71_c394_6a93_89f93b04f5eb
  7f99a384_e0e9_ba03_93cc_da62552bcef7["magic_string_replace_all"]
  d3afbd21_c868_5dcf_9410_cf4749b711bc --> 7f99a384_e0e9_ba03_93cc_da62552bcef7
  6bc9684c_1a71_1bdf_8ee4_8d5d204604b3["magic-string"]
  d3afbd21_c868_5dcf_9410_cf4749b711bc --> 6bc9684c_1a71_1bdf_8ee4_8d5d204604b3
  style d3afbd21_c868_5dcf_9410_cf4749b711bc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import MagicString from 'magic-string';
import { test } from '../../test';
import { magic_string_preprocessor_result, magic_string_replace_all } from '../../helpers.js';

export default test({
	preprocess: {
		markup: ({ content, filename = '' }) => {
			const src = new MagicString(content);
			magic_string_replace_all(src, 'replace me', 'success');
			return magic_string_preprocessor_result(filename, src);
		}
	},
	client: [],
	preprocessed: [{ str: 'replace me', strGenerated: 'success' }]
});

Domain

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 5 module(s): helpers.js, magic-string, magic_string_preprocessor_result, magic_string_replace_all, test.ts.
Where is _config.js in the architecture?
_config.js is located at packages/svelte/tests/sourcemaps/samples/decoded-sourcemap/_config.js (domain: BuildSystem, directory: packages/svelte/tests/sourcemaps/samples/decoded-sourcemap).

Analyze Your Own Codebase

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

Try Supermodel Free