_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 043bf0c6_daf4_3332_8736_15d85489f2a8["_config.js"] 032186a9_8a8b_b603_4335_6ade22d767cb["test.ts"] 043bf0c6_daf4_3332_8736_15d85489f2a8 --> 032186a9_8a8b_b603_4335_6ade22d767cb 740dc682_957b_322a_475e_aac0e8ee02bc["helpers.js"] 043bf0c6_daf4_3332_8736_15d85489f2a8 --> 740dc682_957b_322a_475e_aac0e8ee02bc eef1adf9_5234_9bd1_1658_7e9636867c91["magic_string_bundle"] 043bf0c6_daf4_3332_8736_15d85489f2a8 --> eef1adf9_5234_9bd1_1658_7e9636867c91 style 043bf0c6_daf4_3332_8736_15d85489f2a8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { test } from '../../test';
import { magic_string_bundle } from '../../helpers.js';
export const component_filepath = 'src/some/deep/path/input.svelte';
export const component_file_basename = 'input.svelte';
export const css_file_basename = 'input.css';
const input_css = ' h1 {color: blue;}';
export default test({
preprocess: [
{
style: ({ content, filename }) => {
const style_to_add = `/* Filename from preprocess: ${filename} */` + input_css;
return magic_string_bundle(
[
{ code: content, filename: component_file_basename },
{ code: style_to_add, filename: css_file_basename }
],
component_filepath
);
}
}
],
js_map_sources: [component_file_basename],
css_map_sources: [css_file_basename, component_file_basename],
options: {
filename: component_filepath
},
compileOptions: {
filename: component_filepath,
// compile_directory initializes output filenames, reset to undefined for this test
outputFilename: undefined,
cssOutputFilename: undefined
}
});
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/sourcemap-basename-without-outputname/_config.js (domain: BuildSystem, directory: packages/svelte/tests/sourcemaps/samples/sourcemap-basename-without-outputname).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free