_config.js — svelte Source File
Architecture documentation for _config.js, a javascript file in the svelte codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR c769ee0a_3aea_619a_1baa_b6fe5eb332cb["_config.js"] 032186a9_8a8b_b603_4335_6ade22d767cb["test.ts"] c769ee0a_3aea_619a_1baa_b6fe5eb332cb --> 032186a9_8a8b_b603_4335_6ade22d767cb 740dc682_957b_322a_475e_aac0e8ee02bc["helpers.js"] c769ee0a_3aea_619a_1baa_b6fe5eb332cb --> 740dc682_957b_322a_475e_aac0e8ee02bc eef1adf9_5234_9bd1_1658_7e9636867c91["magic_string_bundle"] c769ee0a_3aea_619a_1baa_b6fe5eb332cb --> eef1adf9_5234_9bd1_1658_7e9636867c91 style c769ee0a_3aea_619a_1baa_b6fe5eb332cb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { test } from '../../test';
import { magic_string_bundle } from '../../helpers.js';
const COMMON = ':global(html) { height: 100%; }\n';
// TODO: removing '\n' breaks test
// - _actual.svelte.map looks correct
// - _actual.css.map adds reference to </style> on input.svelte
// - Most probably caused by bug in current magic-string version (fixed in 0.25.7)
const STYLES = '.awesome { color: orange; }\n';
export default test({
css_map_sources: ['common.scss', 'styles.scss'],
preprocess: [
{
style: () => {
return magic_string_bundle([
{ filename: 'common.scss', code: COMMON },
{ filename: 'styles.scss', code: STYLES }
]);
}
}
],
client: [],
preprocessed: [
'Divs ftw!',
{ code: COMMON, str: 'height: 100%;' },
{ code: STYLES, str: 'color: orange;' }
]
});
Domain
Dependencies
Source
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 3 module(s): helpers.js, magic_string_bundle, test.ts.
Where is _config.js in the architecture?
_config.js is located at packages/svelte/tests/sourcemaps/samples/external/_config.js (domain: BuildSystem, directory: packages/svelte/tests/sourcemaps/samples/external).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free