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

fix(nuxt): use original escapes/quotes in page re-exports #23191

Merged
merged 2 commits into from Sep 14, 2023

Conversation

danielroe
Copy link
Member

πŸ”— Linked issue

resolves #15113

❓ Type of change

  • πŸ“– Documentation (updates to the documentation, readme or JSdoc annotations)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

When parsing imports using findStaticImports we can end up with a string which has unicode escapes. When this happens, calling JSON.stringify on it ends up double-escaping the previous escapes.

I felt the best way to resolve in this particular case was to avoid re-stringifying but other ideas are welcome.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@stackblitz
Copy link

stackblitz bot commented Sep 13, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@danielroe danielroe merged commit e729406 into main Sep 14, 2023
25 checks passed
@danielroe danielroe deleted the fix/non-ascii-specifier branch September 14, 2023 06:06
@github-actions github-actions bot mentioned this pull request Sep 14, 2023
@dargmuesli
Copy link
Member

Amazing, thank you very much for the fix! 😍

@github-actions github-actions bot mentioned this pull request Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

non-ascii character in page path fails build, but only for scripts with lang="ts"
3 participants