Skip to content

Commit de709c2

Browse files
authored
fix(replace): add missing sourceMap documentation (#1698)
* fix(replace): add missing sourceMap documentation * fix(replace): Update attributes alphabetically
1 parent 406e6f7 commit de709c2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

packages/replace/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,19 @@ Default: `null`
154154

155155
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.
156156

157+
### `sourceMap` or `sourcemap`
158+
159+
Type: `Boolean`<br>
160+
Default: `false`
161+
162+
Enables generating sourcemaps for the bundled code. For example, where the plugin is called as follows:
163+
164+
```js
165+
replace({
166+
sourcemap: true
167+
});
168+
```
169+
157170
### `values`
158171

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

0 commit comments

Comments
 (0)