Skip to content

Strip-comments strips source code for some files #75

@trivikr

Description

@trivikr

Describe the bug

We use strip-comments to strip comments from downleveled .d.ts files in AWS SDK for JavaScript (v3).
We noticed that in some cases, it strips the source code.

Steps to reproduce

Follow README from https://github.com/trivikr/strip-comments-test

Observed behavior

The Wisdom.output.d.ts file has source code stripped.

Expected behavior

The Wisdom.output.d.ts file only has comments stripped.

Additional context

Bug report on AWS SDK for JavaScript (v3) aws/aws-sdk-js-v3#3847

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions