Skip to main content
Module

x/aleph_plugin_mdx/dev_deps.ts>Aleph#addModule

The MDX 2 Plugin for Aleph.js
Go to Latest
method Aleph.prototype.addModule
import { Aleph } from "https://deno.land/x/aleph_plugin_mdx@v1.0.0-beta.2/dev_deps.ts";

add a module by given path and optional source code.

Parameters

specifier: string
sourceCode: string
optional
forceRefresh: boolean

Returns

Promise<Module>