forked from vercel/next.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
swc emotion prefer cooked tagged template (vercel#40385)
- Loading branch information
1 parent
4f04fb7
commit e3bd19b
Showing
4 changed files
with
569 additions
and
314 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
errors/invalid-escape-sequence-in-emotion-tagged-template.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Invalid escape sequence in Emotion tagged template | ||
|
||
#### Why This Error Occurred | ||
|
||
<!-- Explain why the error occurred. Ensure the description makes it clear why the warning/error exists --> | ||
|
||
One or more escape sequence in an Emotion tagged template was incorrect. This prevented correct parsing before transformations were applied. | ||
|
||
#### Possible Ways to Fix It | ||
|
||
<!-- Explain how to fix the warning/error, potentially by providing alternative approaches. Ensure this section is actionable by users --> | ||
|
||
Look for `\\` in the string to find the broken escape sequence(s). For example, `\\u` must be followed by four hex digits. | ||
|
||
### Useful Links | ||
|
||
<!-- Add links to relevant documentation --> | ||
|
||
- [Next.js compiler Emotion configuration](https://nextjs.org/docs/advanced-features/compiler#emotion) | ||
- [ECMAScript 2023 syntax for string literals](https://tc39.es/ecma262/multipage/ecmascript-language-lexical-grammar.html#sec-literals-string-literals) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.