{"id":21917,"library":"rollup-plugin-archieml","title":"rollup-plugin-archieml","description":"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.","status":"active","version":"1.2.1","language":"javascript","source_language":"en","source_url":"https://github.com/plmrry/rollup-plugin-archieml","tags":["javascript","archieml","rollup","typescript"],"install":[{"cmd":"npm install rollup-plugin-archieml","lang":"bash","label":"npm"},{"cmd":"yarn add rollup-plugin-archieml","lang":"bash","label":"yarn"},{"cmd":"pnpm add rollup-plugin-archieml","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core ArchieML parsing library","package":"archieml","optional":false}],"imports":[{"note":"Default export is the plugin function. CommonJS require also works but is not recommended in ESM projects.","wrong":"const archieml = require('rollup-plugin-archieml')","symbol":"archieml","correct":"import archieml from 'rollup-plugin-archieml'"}],"quickstart":{"code":"// rollup.config.js\nimport archieml from 'rollup-plugin-archieml';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    dir: 'output',\n    format: 'esm',\n  },\n  plugins: [archieml()],\n};\n\n// src/index.js\nimport data from './data.aml';\nconsole.log(data);\n\n// data.aml\nkey: value\nlist:\n* item1\n* item2\n","lang":"javascript","description":"Shows how to configure Rollup with the plugin and import an .aml file."},"warnings":[{"fix":"Rename files to .aml or customize the include/exclude options (not exposed).","message":"The plugin only supports .aml files. Make sure your files have the .aml extension.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Add archieml() to plugins array in rollup.config.js.","cause":"Rollup cannot parse .aml files without the plugin; the plugin not added to configuration.","error":"Error: Could not resolve './data.aml' from 'src/index.js'"},{"fix":"Validate the ArchieML file with archieml.org or a linter.","cause":"ArchieML syntax error in .aml file.","error":"Unexpected token: punc (.)"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}