Skip to content

Commit

Permalink
fix(replace): add missing sourceMap documentation (rollup#1698)
Browse files Browse the repository at this point in the history
* fix(replace): add missing sourceMap documentation

* fix(replace): Update attributes alphabetically
  • Loading branch information
EduardoAC authored and younggglcy committed Jun 6, 2024
1 parent 7be68ff commit 979f688
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/replace/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,19 @@ Default: `null`

A [picomatch pattern](https://github.com/micromatch/picomatch), or array of patterns, which specifies the files in the build the plugin should operate on. By default all files are targeted.

### `sourceMap` or `sourcemap`

Type: `Boolean`<br>
Default: `false`

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

```js
replace({
sourcemap: true
});
```

### `values`

Type: `{ [key: String]: Replacement }`, where `Replacement` is either a string or a `function` that returns a string.
Expand Down

0 comments on commit 979f688

Please sign in to comment.