Closed
Description
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;