A Rollup plugin that runs esformatter on the final bundle, providing JavaScript code formatting/beautification. Current stable version is 3.1.0, supporting Rollup ^1.0.0 || ^2.0.0 || ^3.0.0 || ^4.0.0. It requires Node >=14. Drops support for older Rollup versions and Node <14 as of v3.0.0. Generates source maps by computing diff between original and formatted bundle, but source maps are disabled by default due to performance cost. Useful for consistent code style in build output, alternative to rollup-plugin-prettier. Maintenance mode, with infrequent updates.
npm install rollup-plugin-esformatterVerified import paths — ran on the pinned version, not inferred.
Basic Rollup configuration using rollup-plugin-esformatter to format the output bundle with two-space indentation.
Upgrade Node to >=14 for v3.x, >=10 for v2.x.
Replace 'sourceMap' with 'sourcemap' in plugin options.
Explicitly set sourcemap: true in both Rollup output config and plugin options.
Be aware that final bundle formatting may differ from per-module formatting. Use esformatter with compatible options.
No action needed; badge is just informational.
Run 'npm install --save-dev rollup-plugin-esformatter' or 'yarn add --dev rollup-plugin-esformatter'.
Use 'import esformatter from 'rollup-plugin-esformatter'' or 'const esformatter = require('rollup-plugin-esformatter')'.Install rollup: 'npm install --save-dev rollup' (ensure version ^1.0.0 || ^2.0.0 || ^3.0.0 || ^4.0.0).
Replace 'sourceMap' with 'sourcemap' in plugin options.