You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When --out-file dist/foo.ts is specified foo.js.map and foo.d.ts output behaviour should be equivalent. Today sourcemap files are outputted alongside dist/foo.js, dts files should do the same.
Actual behavior
dts files are not outputted when using --out-file
Version
v1.6.6
Additional context
No response
The text was updated successfully, but these errors were encountered:
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Describe the bug
emitIsolatedDts
does not output any dts when--out-file
is used to specify the output location.This works for sourcemaps with
--out-file
and--out-dir
. This works for dts when--out-dir
is used but NOT--out-file
.Input code
Config
Playground link (or link to the minimal reproduction)
https://play.swc.rs/?version=1.6.6&code=H4sIAAAAAAAAA%2BNKrSjILypRyMwrSS1KS0xOVXDLz1eo5lJQyEvMTbVSKC4pysxLt%2Baq5YIqTM7PKy5RcHSzAiu0RVKqlJRYpKTDVWsNAEpEJOhUAAAA&config=H4sIAAAAAAAAA02Muw2AMAxEe6aIXDMBNQ0FQ0TBRRAByzYSUZTdMR8hOt%2B9ey6NczBLgM4VOy2QZ0H%2BsjWSV%2FWHNaCZUAJHUrhhbR8HD0KOCW23%2FMyLpKiDbItXnHoVg8o7PnLzPgDZdg44evp4PQGPl4lFmAAAAA%3D%3D
SWC Info output
No response
Expected behavior
When
--out-file dist/foo.ts
is specifiedfoo.js.map
andfoo.d.ts
output behaviour should be equivalent. Today sourcemap files are outputted alongsidedist/foo.js
, dts files should do the same.Actual behavior
dts files are not outputted when using
--out-file
Version
v1.6.6
Additional context
No response
The text was updated successfully, but these errors were encountered: