-
-
Notifications
You must be signed in to change notification settings - Fork 781
Description
System Info
Rspack 1.2.4
Details
If the imported json contains a unicode character, it is escaped twice, which leads to incorrect display in the application.
I think the problem is with one of the loaders.
Example json file:
{
"test_key": "Some test message with unicode
char" // U+2028 before 'char'
}
// Production bundle built with rspack
// i=JSON.parse('{"test_key":"Some test message with unicode \\\\u2028char"}');
// Production bundle built with webpack
// i=JSON.parse('{"test_key":"Some test message with unicode \\u2028char"}');
Reproduce link
Reproduce Steps
- Open https://codesandbox.io/p/github/Fausto95/react-native-web-rsbuild/csb-9n6wzh/draft/eloquent-waterfall
npm run start:web- An example of the problematic text will be on the screen.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels