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
toExports may be used to populate a declaration file (like Nuxt for #imports type support). When this is the case, toExports should be able to take module names from Import entries' typeFrom property, if provided:
constimports=[{from: 'pkg/src',typeFrom: 'pkg/dts',name: 'foo'}]toExports(imports,/* enable d.ts support */)// export {foo} from 'pkg/dts'
Currently, toExports uses the from property exclusively. If typeFrom is provided but from is used, typescript might not be able to find the module's declaration files.
Activity