-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Unicode dev error #6714
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
This test fix seems to do the job, but is it the proper solution?
to: css.mapConsumer = await new SourceMapConsumer(decodeURIComponent(cssMapJson)); |
I'm planning to make a PR changing const b64enc = typeof Buffer == 'function' ? b => Buffer.from(b).toString('base64') : b => btoa(encodeURIComponent(b)) ; This should make this more robust to future changes in this area, since from what I've read |
The workarounds for svelte.kit
<!-- /routes/τεστ.svelte -->
<script>
import PageTest from "$lib/pages/PageTest.svelte";
</script>
<PageTest /> |
Describe the bug
Routes that contain Greek characters and have styles applied in their
.svelte
files error with the following message:Replacing the
b64enc
function with the following seems to fix the problem:Reproduction
Create a file named
τεστ.svelte
in your routes dir with the following contents:then run
npm run dev
and visit that pageLogs
No response
System Info
The text was updated successfully, but these errors were encountered: