Forcing Bun execution (--bun
) of Vite 6 dev with Sass plugin crashes with import.meta is only valid inside modules
#16008
Labels
What version of Bun is running?
1.1.42+50eec0025
What platform is your computer?
Linux 5.15.167.4-microsoft-standard-WSL2 x86_64 x86_64
What steps can reproduce the bug?
Create a new vanilla JS Vite project, install dependencies, then install
sass
:Create a
src/styles.scss
file with any valid contents (I usedh1 { color: rebeccapurple; }
).Add the following line inside the
<head>
tag inindex.html
:Force Bun to run Vite's dev server:
What is the expected behavior?
No error.
What do you see instead?
Additional information
Vite 5 does not exhibit this problem, and running
bun vite
doesn't either, so I'm pretty sure it's not a Vite or Sass bug but a Node compatibility issue with Bun.The text was updated successfully, but these errors were encountered: