Rollup plugin that converts AMD modules (e.g., RequireJS) to ES2016 modules for bundling. Version 4.0.0 requires Node >=8 and Rollup 1.x+. It wraps the amd-to-es6 converter and provides include/exclude filtering and a rewire function to map AMD dependency IDs to file paths. Compared to manual conversion, it automates the transform within the Rollup build pipeline. Release cadence is low; last major update was in 2019.
npm install rollup-plugin-amdVerified import paths — ran on the pinned version, not inferred.
Shows basic usage: import the plugin, create a Rollup config, apply the plugin with include/exclude and a custom rewire function.
Consider using an alternative plugin that supports modern Rollup, or downgrade Rollup to 1.x.
Upgrade to v4.0.0 or later.
Ensure the returned path is relative to the current file, not absolute.
Run 'npm install --save-dev rollup-plugin-amd' and use import syntax.
Ensure the file being transformed is a plain JavaScript file.