Skip to content

Bundler Adapters ​

Use compiler subpaths when your app imports .mel files directly.

The SDK can activate a compiled schema or MEL source string. Bundler adapters are for app code that imports .mel modules.

Vite ​

typescript
import { defineConfig } from "vite";
import { melPlugin } from "@manifesto-ai/compiler/vite";

export default defineConfig({
  plugins: [melPlugin()],
});

Then import the domain:

typescript
import counterMel from "./counter.mel";

Public Adapter Subpaths ​

SubpathPurpose
@manifesto-ai/compiler/viteVite plugin
@manifesto-ai/compiler/webpackwebpack plugin
@manifesto-ai/compiler/rollupRollup plugin
@manifesto-ai/compiler/esbuildesbuild plugin
@manifesto-ai/compiler/rspackRspack plugin
@manifesto-ai/compiler/node-loaderNode ESM loader hooks for .mel files
@manifesto-ai/compiler/loadercompatibility alias for the Node loader

Bundler plugin subpaths export melPlugin and the shared MEL plugin option types. The node-loader subpath exports loader hooks.

Install Note ​

The runtime package is @manifesto-ai/sdk.

Install @manifesto-ai/compiler directly when your application imports compiler entrypoints such as @manifesto-ai/compiler/vite or @manifesto-ai/compiler/node-loader.

Next ​