A Rollup plugin that integrates the Diamond compiler into the build pipeline, enabling TypeScript-like compilation for Diamond source files. Version 0.0.20 is the current stable release with no scheduled cadence. Key differentiators: lightweight, zero-config for basic use, and seamless Rollup integration. Alternatives include manual compilation or other Rollup plugins for custom languages.
npm install rollup-plugin-diamondVerified import paths — ran on the pinned version, not inferred.
Basic Rollup configuration using rollup-plugin-diamond to compile .dm files.
Use default import syntax: import diamond from 'rollup-plugin-diamond';
Use Rollup 3.x or wait for plugin update.
Install diamond-complier: npm install diamond-complier
Use default import: import diamond from 'rollup-plugin-diamond';