rollup / plugins

🍣 The one-stop shop for official Rollup plugins
MIT License
3.57k stars 567 forks source link

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

Closed EduardoAC closed 4 weeks ago

EduardoAC commented 3 months ago

Documentation Is:

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 commented 3 months ago

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 commented 2 months ago

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