mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
Fix example
This commit is contained in:
@@ -154,15 +154,15 @@ String replacement tools tend to have escaping issues and replace unintended par
|
||||
export default `${MY_DEFINE_VALUE}`;
|
||||
```
|
||||
|
||||
Using `--define=MY_DEFINE_VALUE="}"`,
|
||||
Using `--define=MY_DEFINE_VALUE="}ABC"`,
|
||||
|
||||
```ts
|
||||
export default `}`;
|
||||
export default "}ABC";
|
||||
```
|
||||
|
||||
Using a string replacement tool:
|
||||
|
||||
```ts
|
||||
// SyntaxError: Unexpected token '}'
|
||||
export default `${}}`;
|
||||
// Note the missing "}" at the beginning:
|
||||
export default `${}ABC`;
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user