Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] autoCodeSplitting encodes chinese chars in production #3183

Open
ilxqx opened this issue Jan 16, 2025 · 0 comments · May be fixed by #3189
Open

[Bug] autoCodeSplitting encodes chinese chars in production #3183

ilxqx opened this issue Jan 16, 2025 · 0 comments · May be fixed by #3189

Comments

@ilxqx
Copy link

ilxqx commented Jan 16, 2025

Which project does this relate to?

Router

Describe the bug

Chinese characters are converted to Unicode encoding after the build, which does not meet expectations.

Your Example Website or App

https://stackblitz.com/edit/tanstack-router-pbcifh3r?file=src%2Froutes%2Findex.tsx

Steps to Reproduce the Bug or Issue

  1. Go to the reproduction link page
  2. Open the terminal and execute npm run dev
  3. You can see the result correctly shows a line of Chinese text and a line of English text
  4. Open the terminal again, stop the previous command, and execute npm run build
  5. After the build is complete, run npm run preview to view the result again, and you will find that the Chinese text has been encoded into Unicode characters

Note, this issue was reproduced with the autoCodeSplitting: true option configured in the routing plugin.

Expected behavior

As a user, I expect the interface to display the results as normal Unicode text, rather than encoded characters.

Screenshots or Videos

No response

Platform

  • OS: [macOS]
  • Browser: [Chrome]
  • Version: [1.97.1]

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant