codesandbox / sandpack

A component toolkit for creating live-running code editing experiences, using the power of CodeSandbox.
https://sandpack.codesandbox.io
Apache License 2.0
4.86k stars 345 forks source link

Use multiple lines of comments at the beginning of the file. Typescript and JavaScript files are not highlighted #834

Open liyao1520 opened 1 year ago

liyao1520 commented 1 year ago

Bug report

Packages affected

Description of the problem

Use multiple lines of comments at the beginning of the file. Typescript and JavaScript files are not highlighted

image

image

What were you doing when the problem occurred?

What steps can we take to reproduce the problem?

Link to sandbox: [link]() (optional)

Your Environment

Software Name/Version
Sandpack-client version
Sandpack-react version ^2.1.2
Browser Chome
Operating System Windows11
danilowoz commented 1 year ago

Hey, thanks for reporting this issue. However, I can't reproduce it. Could you create a sandbox where I can reproduce and debug it? For example: https://codesandbox.io/s/brave-saha-huxe4r?file=/src/App.tsx

liyao1520 commented 1 year ago

The sandpack docs can reproduce the problem.

image