-
-
Notifications
You must be signed in to change notification settings - Fork 64
Closed
Labels
Description
Details
input
// src/index.ts
export { appLoader, type AppLoaderType as AppLoader } from "./core/loader";output
// dist/esm/index.d.mts
export { appLoader, type AppLoaderType as AppLoader } from "./core/loader";There exists an error Module './core/loader' or its corresponding type declaration could not be found.ts(2307) in output, so the esm types is incorrect for use.
We should add js extension in .d.ts / .d.cts / .d.mts file to make resolution work as what tsup do when using bundleless DTS.
bundle DTS should not do this since api-extractor can not deal dts file like that.
// dist/esm/index.d.mts
export { appLoader, type AppLoaderType as AppLoader } from "./core/loader.mjs";references:
Reactions are currently unavailable