A Rollup plugin that applies regex-based find-and-replace postprocessing to bundle output. Version 1.0.2 is the latest stable release with minimal release cadence. It works like JavaScript String replace, supporting function callbacks and sequential replacement pairs. Differentiates from other replace plugins by operating after all other plugins, allowing transformation of the final bundle.
npm install rollup-plugin-postprocessVerified import paths — ran on the pinned version, not inferred.
Replaces all occurrences of FIND_ME with REPLACED in the final bundle using rollup-plugin-postprocess.
Use global flag in regex: /foo/g instead of just /foo/.
Return empty string '' explicitly to keep match removal behavior clear.
Design patterns carefully to avoid unintended interactions.
Use `import postprocess from 'rollup-plugin-postprocess'`.
Supply an array of [regex, replacement] arrays: `postprocess([[ /pattern/, 'replacement' ]])`.
No dependency data recorded yet.