{"library":"rollup-plugin-esformatter","title":"rollup-plugin-esformatter","description":"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.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-esformatter"],"cli":null},"imports":["import esformatter from 'rollup-plugin-esformatter'","const esformatter = require('rollup-plugin-esformatter')","import esformatter from 'rollup-plugin-esformatter'\n// See @types/rollup-plugin-esformatter or inline type: (options?: EsFormatterOptions) => Plugin"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import esformatter from 'rollup-plugin-esformatter';\n\nexport default {\n  input: './src/index.js',\n  output: {\n    file: './dist/bundle.js',\n    format: 'es',\n  },\n  plugins: [\n    esformatter({\n      indent: {\n        value: '  ',\n      },\n      // additional esformatter options\n    }),\n  ],\n};","lang":"javascript","description":"Basic Rollup configuration using rollup-plugin-esformatter to format the output bundle with two-space indentation.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}