Crash when adding a comment after an import in script setup
Version
3.0.0-rc.10
Reproduction link
https://github.com/gawlk/vue-bug-comment-after-import
Steps to reproduce
yarn create vite-app test-comment-crash
yarn && yarn add mediasoup-client
- Go to App.vue and add the
setup
tag to<script>
- Lauch the app
- Add this
import mediasoup from 'mediasoup-client' // remove this comment and it'll work
BEFOREimport HelloWorld from './components/HelloWorld.vue'
otherwise it won't crash, it can't be after the latest import - See that is crashes
- Remove the comment and see that it works
What is expected?
To work flawlessly
What is actually happening?
The app crashes because of a comment
Please open an issue at https://github.com/vitejs/vite