A Rollup plugin that enables importing ArchieML (.aml) files as JavaScript modules. Current stable version is 1.2.1, released in 2021. It converts ArchieML documents into JavaScript objects via the archieml npm package, making it easy to load structured text data in Rollup builds. The plugin is minimal, with no external runtime dependencies, and provides a simple default import. It supports both ESM and CJS output formats but does not include TypeScript types (users must provide their own). Compared to manual loading, it integrates seamlessly with Rollup's bundling pipeline.
npm install rollup-plugin-archiemlVerified import paths — ran on the pinned version, not inferred.
Shows how to configure Rollup with the plugin and import an .aml file.
Rename files to .aml or customize the include/exclude options (not exposed).
Add archieml() to plugins array in rollup.config.js.
Validate the ArchieML file with archieml.org or a linter.