unplugin-dts icon indicating copy to clipboard operation
unplugin-dts copied to clipboard

Support `export * as _` syntax

Open johnnyshankman opened this issue 1 year ago • 2 comments

Description

As a developer, many plugins etc autogenerate files which we have no control over. Some of them use export * as syntax. This plugin does not support that syntax, therefore it's useless in those scenarios.

Suggested solution

Support the export * as __ syntax.

Additional context

Error: [vite:dts] The "export * as ___" syntax is not supported yet; as a workaround, use "import * as ___" with a separate "export { ___ }" declaration

Ran into this using typechain

https://github.com/dethcrypto/TypeChain/issues/900

Validations

  • [X] Read the FAQ.
  • [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.

johnnyshankman avatar Apr 18 '24 16:04 johnnyshankman

This seems to be a limitation of @microsoft/api-extractor.

qmhc avatar Apr 23 '24 05:04 qmhc

This seems to be fixed by https://github.com/microsoft/rushstack/blob/main/apps/api-extractor/CHANGELOG.md#7470

JeanBarriere avatar Jun 06 '24 08:06 JeanBarriere

作者为啥不升级呢?这是个很严重的功能问题

itwmike avatar Jul 12 '24 02:07 itwmike

Fix by 7a5fe9a55d8503f4af88e935f4b7d3399a4a832e.

qmhc avatar Jul 18 '24 05:07 qmhc

@qmhc @JeanBarriere thank you!

johnnyshankman avatar Jul 18 '24 20:07 johnnyshankman