Home / File/ astro.config.mjs — astro Source File

astro.config.mjs — astro Source File

Architecture documentation for astro.config.mjs, a javascript file in the astro codebase. 1 imports, 0 dependents.

File javascript 1 imports

Entity Profile

Dependency Diagram

graph LR
  0550c9b5_e15e_6815_a784_da3222ddc9f3["astro.config.mjs"]
  b05fd4c1_a3ee_3301_adcd_43b49bae78f1["mdx"]
  0550c9b5_e15e_6815_a784_da3222ddc9f3 --> b05fd4c1_a3ee_3301_adcd_43b49bae78f1
  style 0550c9b5_e15e_6815_a784_da3222ddc9f3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import mdx from '@astrojs/mdx';

export default {
	integrations: [
		mdx({
			optimize: {
				ignoreElementNames: ['strong'],
			},
		}),
	],
	markdown: {
		rehypePlugins: [
			() => {
				return (tree) => {
					tree.children.push({
						type: 'root',
						children: [
							{
								type: 'element',
								tagName: 'p',
								properties: {
									id: 'injected-root-hast',
								},
								children: [
									{
										type: 'text',
										value: 'Injected root hast from rehype plugin',
									},
								],
							},
						],
					});
				};
			},
		],
	},
};

Dependencies

  • mdx

Frequently Asked Questions

What does astro.config.mjs do?
astro.config.mjs is a source file in the astro codebase, written in javascript.
What does astro.config.mjs depend on?
astro.config.mjs imports 1 module(s): mdx.
Where is astro.config.mjs in the architecture?
astro.config.mjs is located at packages/integrations/mdx/test/fixtures/mdx-optimize/astro.config.mjs (directory: packages/integrations/mdx/test/fixtures/mdx-optimize).

Analyze Your Own Codebase

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

Try Supermodel Free