### Describe the bug ## input - index.ts ```ts export type { Dep } from "./dep" export const main = "main"; ``` - dep.ts ```ts export type Dep = "dep" ``` ## output - index.js ```ts const main = "main"; export { main }; ``` - index.d.ts ```ts export { Dep } from "./dep.js"; // <- error since `dep.d.ts` not emitted export declare const main = "main"; ``` This seems to have broken Vitest build https://github.com/vitest-dev/vitest/pull/7867 ### Reproduction https://github.com/hi-ogawa/reproductions/tree/main/unplugin-isolated-decl-type-re-export ### System Info ```Shell "rollup": "^4.40.0", "unplugin-isolated-decl": "0.13.7", "unplugin-oxc": "^0.3.4" ``` ### Used Package Manager pnpm ### Validations - [x] Follow our [Code of Conduct](https://github.com/antfu/.github/blob/main/CODE_OF_CONDUCT.md) - [x] Read the [Contributing Guide](https://github.com/antfu/contribute). - [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate. - [x] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead. - [x] The provided reproduction is a [minimal reproducible](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.
Activity
sxzz commentedon Apr 24, 2025
Actually it's caused by Oxc side. Fixed by upgrading oxc to v0.66.
fix: type-only imports