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. 2 imports, 0 dependents.

File javascript 2 imports

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

// @ts-check
import { defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx';

// https://astro.build/config
export default defineConfig({
  integrations: [mdx()],
  markdown: {
    remarkPlugins: [
      function myRemarkPlugin() {
        return function transformer(tree, file) {
					tree.children.push({
						type: 'paragraph',
						children: [{ type: 'text', value: file?.data?.astro?.frontmatter?.addedByTransformer ? "Transformed" : "Not transformed" }],
					});
        };
      },
      function addFrontmatter() {
        return function (tree, file) {
          if (file.data.astro?.frontmatter) {
          file.data.astro.frontmatter.customProperty =
            'Generated property via remark plugin!';
          }
        };
      }
    ],
  },
});

Dependencies

  • config
  • 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 2 module(s): config, mdx.
Where is astro.config.mjs in the architecture?
astro.config.mjs is located at packages/astro/test/fixtures/content-layer-remark-plugins/astro.config.mjs (directory: packages/astro/test/fixtures/content-layer-remark-plugins).

Analyze Your Own Codebase

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

Try Supermodel Free