Skip to main content
Glama
bundleJSFile.ts642 B
import { type BuildOptions, build } from 'esbuild'; const commonBuildOptions = { bundle: true, format: 'cjs', platform: 'node', target: 'es2019', sourcemap: false, logLevel: 'silent', write: true, // Bundle relative/local files, but keep bare module imports external packages: 'external', loader: { '.js': 'js', '.jsx': 'jsx', '.mjs': 'js', '.ts': 'ts', '.tsx': 'tsx', '.cjs': 'js', '.json': 'json', '.md': 'text', '.mdx': 'text', }, } as const; export const bundleJSFile = async (buildOptions: BuildOptions) => await build({ ...commonBuildOptions, ...buildOptions, });

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aymericzip/intlayer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server