Skip to content

Commit 30deabf

Browse files
committed
docs: document define behavior change
1 parent 7b3da03 commit 30deabf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/config/index.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,11 @@ export default ({ command, mode }) => {
105105

106106
- **Type:** `Record<string, string>`
107107

108-
Define global variable replacements. Entries will be defined as globals during dev and statically replaced during build. Replacements are performed only when the match is surrounded by word boundaries (`\b`).
108+
Define global variable replacements. Entries will be defined as globals during dev and statically replaced during build.
109+
110+
- Starting from `2.0.0-beta.70`, string values will be used as raw expressions, so if defining a string constant, it needs to be explicitly quoted (e.g. with `JSON.stringify`).
111+
112+
- Replacements are performed only when the match is surrounded by word boundaries (`\b`).
109113

110114
### plugins
111115

0 commit comments

Comments
 (0)