From 3a4fbc55e04680f5e01912b228b87f9f137f85cc Mon Sep 17 00:00:00 2001 From: EduardoAC Date: Tue, 19 Mar 2024 14:36:57 +0000 Subject: [PATCH 1/2] fix(replace): add missing sourceMap documentation --- packages/replace/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/replace/README.md b/packages/replace/README.md index cc3e32d38..92a8eb7b8 100644 --- a/packages/replace/README.md +++ b/packages/replace/README.md @@ -179,6 +179,19 @@ replace({ }); ``` +### `sourceMap` or `sourcemap` + +Type: `Boolean`
+Default: `false` + +Enables generating sourcemaps for the bundled code. For example, where the plugin is called as follows: + +```js +replace({ + sourcemap: true +}); +``` + ## Word Boundaries By default, values will only match if they are surrounded by _word boundaries_. From 8171b4851e6a209a1fa29131acfec0452576296c Mon Sep 17 00:00:00 2001 From: Eduardo Date: Wed, 5 Jun 2024 09:44:00 +0100 Subject: [PATCH 2/2] fix(replace): Update attributes alphabetically --- packages/replace/README.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/replace/README.md b/packages/replace/README.md index 92a8eb7b8..412db4d5d 100644 --- a/packages/replace/README.md +++ b/packages/replace/README.md @@ -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`
+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. @@ -179,19 +192,6 @@ replace({ }); ``` -### `sourceMap` or `sourcemap` - -Type: `Boolean`
-Default: `false` - -Enables generating sourcemaps for the bundled code. For example, where the plugin is called as follows: - -```js -replace({ - sourcemap: true -}); -``` - ## Word Boundaries By default, values will only match if they are surrounded by _word boundaries_.