这是indexloc提供的服务,不要输入任何密码
Skip to content

bug: MinifyOptions re-exported from terser by tsup include invalid typings when processed by rollup-plugin-dts #834

@favna

Description

@favna

After updating tsup to to v6.6.0 our build is failing when running a general type checking with --noEmit because the typings of tsup re-export the typings of terser which in turn are incorrectly parsed by rollup-plugin-dts. The error log can be found here: https://github.com/sapphiredev/shapeshift/actions/runs/4156157046/jobs/7189739909 and/or https://github.com/skyra-project/char/actions/runs/4156157083/jobs/7189740023

I know the root cause here is either terser or the dts plugin, but I also don't think either of those libraries can really realistically fix the issue so I'm hoping you can fix it on the tsup side.

For now I can apply a yarn patch to circumvent the issue, but that is less than ideal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions