{"id":27358,"library":"rollup-plugin-mt2amd","title":"rollup-plugin-mt2amd","description":"A Rollup plugin that converts JavaScript modules using the 'mt' module format (likely a custom or legacy format) to AMD (Asynchronous Module Definition) format. Version 2.2.0 is current; there is no public information on release cadence or known alternatives. This plugin is aimed at users transitioning from a specific module system to AMD for use with RequireJS or similar loaders. The package has low adoption and minimal documentation, indicating it may be niche or internal.","status":"active","version":"2.2.0","language":"javascript","source_language":"en","source_url":"https://github.com/webyom/rollup-plugin-mt2amd","tags":["javascript"],"install":[{"cmd":"npm install rollup-plugin-mt2amd","lang":"bash","label":"npm"},{"cmd":"yarn add rollup-plugin-mt2amd","lang":"bash","label":"yarn"},{"cmd":"pnpm add rollup-plugin-mt2amd","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency: required to function as a Rollup plugin.","package":"rollup","optional":false}],"imports":[{"note":"The package likely uses default export; CJS require may work but ESM is recommended.","wrong":"const mt2amd = require('rollup-plugin-mt2amd')","symbol":"mt2amd","correct":"import mt2amd from 'rollup-plugin-mt2amd'"},{"note":"Check actual exports: if named export exists, use named import. This is speculative due to lack of documentation.","wrong":"import mt2amd from 'rollup-plugin-mt2amd'","symbol":"mt2amd","correct":"import { mt2amd } from 'rollup-plugin-mt2amd'"},{"note":"Avoid namespace import if default export exists.","wrong":"import * as mt2amd from 'rollup-plugin-mt2amd'","symbol":"default","correct":"import mt2amd from 'rollup-plugin-mt2amd'"}],"quickstart":{"code":"import mt2amd from 'rollup-plugin-mt2amd';\nimport { rollup } from 'rollup';\nimport resolve from '@rollup/plugin-node-resolve';\n\nconst bundle = await rollup({\n  input: 'src/index.js',\n  plugins: [\n    resolve(),\n    mt2amd({ /* options */ })\n  ]\n});\nawait bundle.write({ format: 'amd', file: 'dist/bundle.js' });","lang":"javascript","description":"Shows basic usage of rollup-plugin-mt2amd to convert mt-format modules to AMD output using Rollup."},"warnings":[{"fix":"Inspect the package's index.js or TypeScript definitions to determine correct import syntax.","message":"Unclear export mechanism: The package may export as default or named. Always verify the actual export to avoid import errors.","severity":"gotcha","affected_versions":">=2.0.0"},{"fix":"Review the plugin's source code on GitHub to identify accepted options.","message":"Undocumented options: Plugin options are not documented; users must read source code to understand configuration.","severity":"gotcha","affected_versions":">=2.0.0"},{"fix":"Ensure your mt modules conform to the expected format by examining the plugin's transformation logic.","message":"Potential compatibility issues: The plugin may only work with certain mt module format variants. Incompatible inputs may produce unexpected output or errors.","severity":"gotcha","affected_versions":">=2.0.0"},{"fix":"Use mt2amd conversion as a one-time migration step or look for similar tools.","message":"No active maintenance: The repository has not been updated in years; consider alternatives if possible.","severity":"deprecated","affected_versions":">=2.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run 'npm install rollup-plugin-mt2amd' and ensure using correct import.","cause":"Package not installed or import path incorrect.","error":"Error: Cannot find module 'rollup-plugin-mt2amd'"},{"fix":"Check the package's export: try 'import { mt2amd } from ...' or 'import * as mt2amd from ...'.","cause":"Import yields undefined (maybe default vs named export mismatch).","error":"TypeError: mt2amd is not a function"},{"fix":"Verify that your module uses the exact mt syntax the plugin expects; refer to plugin source for specifics.","cause":"Input file does not match expected mt format.","error":"Plugin error: Invalid mt module syntax"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}