{"id":24903,"library":"amdlc","title":"AMD Library Compiler","description":"A Node.js CLI tool (v0.1.9) that compiles AMD-style modules into a standalone library file with global namespace exposure, as opposed to app-specific loaders like RequireJS. It produces three files: a minified build (via Uglify-js), an inline source file, and a development file with synchronous module loading. Last updated in 2013; appears unmaintained. Use for legacy AMD projects only; modern projects should favor ES modules.","status":"abandoned","version":"0.1.9","language":"javascript","source_language":"en","source_url":"ssh://git@github.com/spocke/amdlc","tags":["javascript","amd","cli"],"install":[{"cmd":"npm install amdlc","lang":"bash","label":"npm"},{"cmd":"yarn add amdlc","lang":"bash","label":"yarn"},{"cmd":"pnpm add amdlc","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Required for minification of output files.","package":"uglify-js"}],"imports":[{"note":"CommonJS-only; no ESM or TypeScript support.","wrong":"import amdlc from 'amdlc';","symbol":"amdlc","correct":"var amdlc = require('amdlc');"},{"note":"The compile function is synchronous and expects a single options object.","wrong":"amdlc.compile.call(null, options);","symbol":"amdlc.compile","correct":"amdlc.compile(options);"},{"note":"Default export provides the full module; named exports do not exist.","wrong":"import { compile } from 'amdlc';","symbol":"amdlc","correct":"const amdlc = require('amdlc');"}],"quickstart":{"code":"var amdlc = require(\"amdlc\");\n\namdlc.compile({\n    from: \"src/**/*.js\",\n    baseDir: \"src\",\n    compress: true,\n    expose: \"public\",\n    excludeRootNamespaceFromPath: true,\n    verbose: true,\n    outputSource: \"out/lib.js\",\n    outputMinified: \"out/lib.min.js\",\n    outputDev: \"out/lib.dev.js\"\n});","lang":"javascript","description":"Compiles all AMD modules in src/ into a standalone library with three output files."},"warnings":[{"fix":"Use named modules in AMD define('moduleName', [...]);","message":"Anonymous modules are not implemented; all modules must have a named define() call.","severity":"gotcha","affected_versions":"<0.2"},{"fix":"Use absolute paths or configure baseDir correctly; use full module names.","message":"Relative module dependencies (e.g., ./MyModule) are not supported.","severity":"gotcha","affected_versions":"<0.2"},{"fix":"Consider switching to ES modules with Rollup or Webpack.","message":"Package has not been updated since 2013; relies on unmaintained Uglify-js version.","severity":"deprecated","affected_versions":"all"},{"fix":"Use the exact option name as shown in documentation.","message":"The 'excludeRootNamespaceFromPath' option is misspelled (excludeRootNamespaceFromPath). Must match exactly.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'npm install -g amdlc' for CLI, or 'npm install amdlc' for programmatic use.","cause":"Package not installed locally or globally.","error":"Error: Cannot find module 'amdlc'"},{"fix":"Use 'var amdlc = require(\"amdlc\");'","cause":"Incorrect import (ESM import used instead of require).","error":"TypeError: amdlc.compile is not a function"},{"fix":"Use define('moduleName', [...], function() { ... });","cause":"Module defined without a name in define().","error":"Error: Anonymous modules not supported"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}