recmaExamplePlugin() — astro Function Reference
Architecture documentation for the recmaExamplePlugin() function in mdx-plugins.test.js from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 1622b2dc_42f2_b89c_fb86_90e3ecf5166d["recmaExamplePlugin()"] e8760276_ae78_8548_876c_cdc1c14c40af["mdx-plugins.test.js"] 1622b2dc_42f2_b89c_fb86_90e3ecf5166d -->|defined in| e8760276_ae78_8548_876c_cdc1c14c40af style 1622b2dc_42f2_b89c_fb86_90e3ecf5166d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/mdx/test/mdx-plugins.test.js lines 270–286
function recmaExamplePlugin() {
return (tree) => {
estreeVisit(tree, (node) => {
if (
node.type === 'VariableDeclarator' &&
node.id.name === 'recmaPluginWorking' &&
node.init?.type === 'Literal'
) {
node.init = {
...(node.init ?? {}),
value: true,
raw: 'true',
};
}
});
};
}
Domain
Subdomains
Source
Frequently Asked Questions
What does recmaExamplePlugin() do?
recmaExamplePlugin() is a function in the astro codebase, defined in packages/integrations/mdx/test/mdx-plugins.test.js.
Where is recmaExamplePlugin() defined?
recmaExamplePlugin() is defined in packages/integrations/mdx/test/mdx-plugins.test.js at line 270.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free