Registry / serialization / rollup-plugin-archieml

rollup-plugin-archieml

JSON →
library1.2.1jsnpmunverified

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-archieml
INSTALL
IMPORT
SIG · ROLLUP-PLUGIN-ARCH
R
rollup-plugin-archieml
serializationjavascriptv1.2.1
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18–223 runs
build_error
glibc
node 18–223 runs
build_error
Code
Verified usage

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

archieml
✓ import archieml from 'rollup-plugin-archieml'
✗ const archieml = require('rollup-plugin-archieml')
Default export is the plugin function. CommonJS require also works but is not recommended in ESM projects.

Shows how to configure Rollup with the plugin and import an .aml file.

// rollup.config.js import archieml from 'rollup-plugin-archieml'; export default { input: 'src/index.js', output: { dir: 'output', format: 'esm', }, plugins: [archieml()], }; // src/index.js import data from './data.aml'; console.log(data); // data.aml key: value list: * item1 * item2
Debug
Known issues
gotchaThe plugin only supports .aml files. Make sure your files have the .aml extension.
fix
Rename files to .aml or customize the include/exclude options (not exposed).
affects: >=0.0.0
Errors
Common errors & fixes
Error: Could not resolve './data.aml' from 'src/index.js'
Rollup cannot parse .aml files without the plugin; the plugin not added to configuration.
fix
Add archieml() to plugins array in rollup.config.js.
Unexpected token: punc (.)
ArchieML syntax error in .aml file.
fix
Validate the ArchieML file with archieml.org or a linter.
Upgrade
Version history
1.2.1latest on npm
Audit
Dependencies
archiemlrequiredCore ArchieML parsing library
Agent activity
4 hits · last 30 days
node
4
Resources
rollup-plugin-archieml — npm install rollup-plugin-archieml · libregistry