-
Notifications
You must be signed in to change notification settings - Fork 710
Closed
oxc-project/oxc
#8141Labels
Description
Reproduction link or steps
This does not work:
import { type Component, type Ref, markRaw, ref } from "vue";But this does:
import { markRaw, ref } from "vue";
import type { Component, Ref } from "vue";What is expected?
import { type Component, type Ref, markRaw, ref } from "vue"; to work, as it does in upstream Vite/Rollup
What is actually happening?
Interestingly, I get two different errors from Firefox and Chromium
Chromium:
Uncaught SyntaxError: Unexpected identifier 'Component'
Firefox:
SyntaxError: missing '}' after module specifier list
System Info
System:
OS: Linux 6.13 Arch Linux
CPU: (24) x64 AMD Ryzen AI 9 HX 370 w/ Radeon 890M
Memory: 20.01 GB / 30.47 GB
Container: Yes # this tool said yes for some reason, but it's bare metal
Shell: 3.7.1 - /usr/bin/fish
Binaries:
Node: 23.5.0 - /usr/bin/node
Yarn: 1.22.22 - /usr/bin/yarn
npm: 11.0.0 - /usr/bin/npm
pnpm: 9.15.1 - /usr/bin/pnpm
bun: 1.1.42 - ~/.bun/bin/bun
Browsers:
Chromium: 131.0.6778.204
Firefox: Mozilla Firefox 133.0.3Any additional comments?
Using Bun and rolldown/vite@a839caa
Reactions are currently unavailable