A build tool that transforms Vue single-file components (.vue) and ES module code into NEJ-style AMD modules with NEJ.define() wrappers. Current version 1.3.0. Provides a command-line interface (roll, rollup) and programmatic API (doRollup). Supports alias mapping to avoid bundling common modules, comment removal, and external Babel helpers. It is a niche tool for projects migrating from Vue/ESM to the NEJ module system, with no active development observed since 2020.
npm install rollup-to-nejNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Programmatic build using the API: bundles .vue and .js files from 'raw' to 'src' with NEJ.define wrapping, aliases, and option to remove comments.
Consider migrating to Vite or webpack with NEJ plugins if needed.
Use 'npx roll build vue ...' or install globally with 'npm i -g rollup-to-nej'.
Always quote or escape values that contain special shell characters, e.g., -s "@nej=./src".
Manually review and adjust output for target environment.
Install via 'npm install rollup-to-nej' and use 'const doRollup = require('rollup-to-nej');'Use 'npx roll ...' or install globally: 'npm i -g rollup-to-nej'.
Ensure input files have .vue extension and the 'vue' preset is used: 'roll build vue -i ...'