Home / File/ _config.js — svelte Source File

_config.js — svelte Source File

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

File javascript BuildSystem QualityControl 2 imports 2 functions

Entity Profile

Dependency Diagram

graph LR
  3791eab4_7886_652c_1a79_7ea3a316089a["_config.js"]
  654af6d6_2570_6860_f8dd_6b6131e1eec4["test.ts"]
  3791eab4_7886_652c_1a79_7ea3a316089a --> 654af6d6_2570_6860_f8dd_6b6131e1eec4
  19c1120a_b64d_3b72_f943_7a9bdf449cbe["counter.js"]
  3791eab4_7886_652c_1a79_7ea3a316089a --> 19c1120a_b64d_3b72_f943_7a9bdf449cbe
  style 3791eab4_7886_652c_1a79_7ea3a316089a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

export default test({
	// TODO worth it to fix? arguably it's correct to always call the function, or rather it's undefined behavior as you shouldn't rely on render side effects
	// to fix it we would need to create many more signals (computeds) for this, or introduce some kind of dirty bitmask
	get props() {
		return { x: 1, y: 2 };
	},

	html: `
		<p>1</p>
		<p class='2'></p>
	`,

	test({ assert, component }) {
		counter.count = 0;

		component.x = 3;
		assert.equal(counter.count, 0);

		component.x = 4;
		component.y = 5;
		assert.equal(counter.count, 1);

		component.x = 5;
		component.y = 5;
		assert.equal(counter.count, 1);
	}
});

Domain

Subdomains

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, QualityControl subdomain.
What functions are defined in _config.js?
_config.js defines 2 function(s): default.props, default.test.
What does _config.js depend on?
_config.js imports 2 module(s): counter.js, test.ts.
Where is _config.js in the architecture?
_config.js is located at packages/svelte/tests/runtime-legacy/samples/ignore-unchanged-attribute/_config.js (domain: BuildSystem, subdomain: QualityControl, directory: packages/svelte/tests/runtime-legacy/samples/ignore-unchanged-attribute).

Analyze Your Own Codebase

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

Try Supermodel Free