Reproduction link or steps
When combining type exports and value exports in a single export statement, the exports are ignored and cause "MISSING_EXPORT" errors when importing.
// Working example (separate export statements)
export { ToastViewport }
export { type ToastActionElement }
// Not working (combined export statement)
export { type ToastProps, ToastViewport }
// Import statement that fails
import { ToastViewport } from "./dep1.tsx";
What is expected?
The combined export statement should work correctly, allowing both type and value exports in a single export statement. This is valid TypeScript syntax and works with other bundlers. The ToastViewport value should be properly exported and available for import.
What is actually happening?
The export is ignored, and when trying to import ToastViewport, the following error is thrown:
Error: [MISSING_EXPORT] Error: "ToastViewport" is not exported by "tests/dep1.tsx".
╭─[tests/jsr/mod.ts:45:10]
│
45 │ import { ToastViewport } from "./dep1.tsx";
System Info
System:
OS: macOS 15.0.1
CPU: (8) arm64 Apple M1 Pro
Memory: 72.84 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.12.0 - ~/.version-fox/temp/1733439600-74842/nodejs/bin/node
npm: 10.9.0 - ~/.version-fox/temp/1733439600-74842/nodejs/bin/npm
pnpm: 9.12.3 - ~/.version-fox/temp/1733439600-74842/nodejs/bin/pnpm
Watchman: 2024.10.21.00 - /opt/homebrew/bin/watchman
Browsers:
Chrome: 131.0.6778.139
Safari: 18.0.1
npmPackages:
rolldown: workspace:* => 0.15.0
Any additional comments?
No response
Reproduction link or steps
When combining type exports and value exports in a single export statement, the exports are ignored and cause "MISSING_EXPORT" errors when importing.
What is expected?
The combined export statement should work correctly, allowing both type and value exports in a single export statement. This is valid TypeScript syntax and works with other bundlers. The ToastViewport value should be properly exported and available for import.
What is actually happening?
The export is ignored, and when trying to import
ToastViewport, the following error is thrown:System Info
System: OS: macOS 15.0.1 CPU: (8) arm64 Apple M1 Pro Memory: 72.84 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 22.12.0 - ~/.version-fox/temp/1733439600-74842/nodejs/bin/node npm: 10.9.0 - ~/.version-fox/temp/1733439600-74842/nodejs/bin/npm pnpm: 9.12.3 - ~/.version-fox/temp/1733439600-74842/nodejs/bin/pnpm Watchman: 2024.10.21.00 - /opt/homebrew/bin/watchman Browsers: Chrome: 131.0.6778.139 Safari: 18.0.1 npmPackages: rolldown: workspace:* => 0.15.0Any additional comments?
No response