Home / File/ module.mjs — astro Source File

module.mjs — astro Source File

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

File javascript 1 imports

Entity Profile

Dependency Diagram

graph LR
  fa8fc2de_2330_a3dc_0cd1_e637a136f272["module.mjs"]
  69f8c372_8dd8_1f62_b2bc_0eccd67987f5["runtime"]
  fa8fc2de_2330_a3dc_0cd1_e637a136f272 --> 69f8c372_8dd8_1f62_b2bc_0eccd67987f5
  style fa8fc2de_2330_a3dc_0cd1_e637a136f272 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

// astro-head-inject
import {
	createDeprecatedFunction,
	createGetCollection,
	createGetEntries,
	createGetEntry,
	createGetLiveCollection,
	createGetLiveEntry,
	createReference,
} from 'astro/content/runtime';

export {
	defineCollection,
	defineLiveCollection,
	renderEntry as render,
} from 'astro/content/runtime';
// TODO: remove in Astro 7
export { z } from 'astro/zod';

/* @@LIVE_CONTENT_CONFIG@@ */

export const getCollection = createGetCollection({
	liveCollections,
});

export const getEntry = createGetEntry({
	liveCollections,
});

export const getEntries = createGetEntries(getEntry);

export const reference = createReference();

export const getLiveCollection = createGetLiveCollection({
	liveCollections,
});

export const getLiveEntry = createGetLiveEntry({
	liveCollections,
});

// TODO: remove in Astro 7
export const getEntryBySlug = createDeprecatedFunction('getEntryBySlug');

// TODO: remove in Astro 7
export const getDataEntryById = createDeprecatedFunction('getDataEntryById');

Dependencies

  • runtime

Frequently Asked Questions

What does module.mjs do?
module.mjs is a source file in the astro codebase, written in javascript.
What does module.mjs depend on?
module.mjs imports 1 module(s): runtime.
Where is module.mjs in the architecture?
module.mjs is located at packages/astro/templates/content/module.mjs (directory: packages/astro/templates/content).

Analyze Your Own Codebase

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

Try Supermodel Free