Registry / devops / rollup-plugin-mt2amd

rollup-plugin-mt2amd

JSON →
library2.2.0jsnpmunverified

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.

npm install rollup-plugin-mt2amd
INSTALL
IMPORT
SIG · ROLLUP-PLUGIN-MT2A
R
rollup-plugin-mt2amd
devopsjavascriptv2.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mt2amd
import mt2amd from 'rollup-plugin-mt2amd'
const mt2amd = require('rollup-plugin-mt2amd')
The package likely uses default export; CJS require may work but ESM is recommended.
mt2amd
import { mt2amd } from 'rollup-plugin-mt2amd'
import mt2amd from 'rollup-plugin-mt2amd'
Check actual exports: if named export exists, use named import. This is speculative due to lack of documentation.
default
import mt2amd from 'rollup-plugin-mt2amd'
import * as mt2amd from 'rollup-plugin-mt2amd'
Avoid namespace import if default export exists.

Shows basic usage of rollup-plugin-mt2amd to convert mt-format modules to AMD output using Rollup.

import mt2amd from 'rollup-plugin-mt2amd'; import { rollup } from 'rollup'; import resolve from '@rollup/plugin-node-resolve'; const bundle = await rollup({ input: 'src/index.js', plugins: [ resolve(), mt2amd({ /* options */ }) ] }); await bundle.write({ format: 'amd', file: 'dist/bundle.js' });
Debug
Known issues
gotchaUnclear export mechanism: The package may export as default or named. Always verify the actual export to avoid import errors.
fix
Inspect the package's index.js or TypeScript definitions to determine correct import syntax.
affects: >=2.0.0
gotchaUndocumented options: Plugin options are not documented; users must read source code to understand configuration.
fix
Review the plugin's source code on GitHub to identify accepted options.
affects: >=2.0.0
gotchaPotential compatibility issues: The plugin may only work with certain mt module format variants. Incompatible inputs may produce unexpected output or errors.
fix
Ensure your mt modules conform to the expected format by examining the plugin's transformation logic.
affects: >=2.0.0
deprecatedNo active maintenance: The repository has not been updated in years; consider alternatives if possible.
fix
Use mt2amd conversion as a one-time migration step or look for similar tools.
affects: >=2.0.0
Errors
Common errors & fixes
Error: Cannot find module 'rollup-plugin-mt2amd'
Package not installed or import path incorrect.
fix
Run 'npm install rollup-plugin-mt2amd' and ensure using correct import.
TypeError: mt2amd is not a function
Import yields undefined (maybe default vs named export mismatch).
fix
Check the package's export: try 'import { mt2amd } from ...' or 'import * as mt2amd from ...'.
Plugin error: Invalid mt module syntax
Input file does not match expected mt format.
fix
Verify that your module uses the exact mt syntax the plugin expects; refer to plugin source for specifics.
Upgrade
Version history
2.2.0latest on npm
Audit
Dependencies
rolluprequiredPeer dependency: required to function as a Rollup plugin.
Agent activity
4 hits · last 30 days
node
4
Resources
rollup-plugin-mt2amd — npm install rollup-plugin-mt2amd · libregistry