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

[repl] CSS files not encoded to utf8 #10103

Open
hasdfa opened this issue Mar 8, 2025 · 0 comments
Open

[repl] CSS files not encoded to utf8 #10103

hasdfa opened this issue Mar 8, 2025 · 0 comments

Comments

@hasdfa
Copy link

hasdfa commented Mar 8, 2025

🐛 bug report

When using css files in REPL it shows as array of numbers (Buffer) which is not encoded to urf8

🎛 Configuration (.babelrc, package.json, cli command)

🤔 Expected Behavior

It should be a string

'.MZ3kha_test {\n  color: #fff;\n}\n'

😯 Current Behavior

It is an array of numbers

46,77,90,51,107,104,97,95,116,101,115,116,32,123,10,32,32,99,111,108,111,114,58,32,35,102,102,102,59,10,125,10

💁 Possible Solution

Buffer.from(TEXT.split(',').map(Number)).toString('utf-8')

🔦 Context

No specific context

💻 Code Sample

https://repl.parceljs.org/#...

🌍 Your Environment

Based on commit [d19b1f6bdb](https://github.com/parcel-bundler/parcel/commits/d19b1f6bdb05eb5a3085f44daae15c0fe2709ab9)

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

No branches or pull requests

1 participant