Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
chenjiahan opened this issue Sep 18, 2024 · 3 comments
Closed

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

chenjiahan opened this issue Sep 18, 2024 · 3 comments
Labels
🐞 bug Something isn't working

Comments

@chenjiahan
Copy link
Member

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

@chenjiahan chenjiahan added the 🐞 bug Something isn't working label Sep 18, 2024
@Timeless0911
Copy link
Collaborator

image

@Timeless0911
Copy link
Collaborator

This issue can be closed after web-infra-dev/rsbuild#3510 merged and released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants