Skip to content

[Bug]: Should remove the comments of types #210

Closed
@chenjiahan

Description

@chenjiahan

Version

System:
    OS: macOS 14.6.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 67.81 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Chrome: 128.0.6613.138
    Safari: 17.6
  npmPackages:
    @rslib/core: 0.0.6 => 0.0.6

Details

  • Input:
export type SomeType = {
  /**
   * @deprecated
   */
  foo?: {
    /**
     * @deprecated
     */
    bar: string;
  };
};

const foo = () => {};
  • Current output:
/**
 * @deprecated
 */
/**
 * @deprecated
 */
const foo = () => {};
  • Expected output:
const foo = () => {};

Reproduce link

web-infra-dev/rsbuild#3502

Reproduce Steps

See web-infra-dev/rsbuild#3502

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions