Open bubble0601 opened 1 month ago
Maybe duplicate of https://github.com/vercel/next.js/issues/65237?
According to this, the https://github.com/vercel/turborepo/commit/a56214480242960a36ad6940ce6c5e84664e8705 and https://github.com/vercel/next.js/pull/65450 appear to fix this issue, and these versions include this fix:
Link to the code that reproduces this issue
https://codesandbox.io/p/devbox/tender-sun-8ygrks
To Reproduce
SyntaxError: Invalid character '\u30fb'
and the script fails to load.Current vs. Expected behavior
Current Behavior: In iOS Safari 17.1 and older, you encounter a SyntaxError due to the middle dot character not being properly quoted in the minified JavaScript output. This error occurs because the middle dot is now identified as a new identifier character in Unicode, which older browsers may not handle correctly.
Expected Behavior: Next.js is expected to support Safari 12 and newer. Therefore, the JavaScript output should correctly handle the middle dot character by quoting it, ensuring compatibility with Safari 12 and above.
Provide environment information
Which area(s) are affected? (Select all that apply)
SWC, Webpack
Which stage(s) are affected? (Select all that apply)
Other (Deployed)
Additional context