Skip to content

The comments are not removed from transpiled *.js files #2892

Closed
@trivikr

Description

@trivikr

Describe the bug

The comments are not removed from transpiled *.js files
Refs: #2817

Your environment

SDK version number

@aws-sdk/[email protected]

Is the issue in the browser/Node.js/ReactNative?

Node.js

Details of the browser/Node.js/ReactNative version

v14.18.0

Steps to reproduce

  • Create a fresh workspace.
  • Install @aws-sdk/[email protected]
  • tail node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js

Observed behavior

The comments are present in transpiled *.js files.

$ tail node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js
    /**
     * Destroy underlying resources, like sockets. It's usually not necessary to do this.
     * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
     * Otherwise, sockets might stay open for quite a long time before the server terminates them.
     */
    destroy() {
        super.destroy();
    }
}
exports.STSClient = STSClient;

Expected behavior

The comments should be removed from transpiled *.js files.

$ tail node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js
        this.middlewareStack.use(middleware_content_length_1.getContentLengthPlugin(this.config));
        this.middlewareStack.use(middleware_host_header_1.getHostHeaderPlugin(this.config));
        this.middlewareStack.use(middleware_logger_1.getLoggerPlugin(this.config));
        this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
    }
    destroy() {
        super.destroy();
    }
}
exports.STSClient = STSClient;

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions