plugins icon indicating copy to clipboard operation
plugins copied to clipboard

[@rollup/plugin-replace] Missing sourceMap option within Readme

Open EduardoAC opened this issue 1 year ago • 2 comments

  • Rollup Plugin Name: @rollup/plugin-replace
  • Rollup Plugin Version: 5.0.5

Documentation Is:

  • [X] Missing
  • [ ] Needed
  • [ ] Confusing
  • [ ] Not Sure?

Please Explain in Detail...

Although the option sourceMap exists within the codebase it's not documented likely for historical reasons as it wasn't documented either on the archive plugin rollup-plugin-replace

Your Proposal for Changes

Add a new entry to the root README.md as follows

sourceMap

Type: Boolean
Default: false

Enables generating sourcemaps for the bundled code. For example, where the plugin is called as follows:

replace({
  sourcemap: true
});

EduardoAC avatar Mar 19 '24 15:03 EduardoAC

The @rollup/plugin-replace documentation did not include the sourceMap option. To speed up the resolution, I've created a PR with the fix.

EduardoAC avatar Mar 19 '24 15:03 EduardoAC

Hi @shellscape, Sorry to bother you, but I don't know the best way to resolve my issue. Can you have a look into this? It should be an easy PR

EduardoAC avatar Apr 27 '24 08:04 EduardoAC