Currently we are export our sdk library using rollup js with cjs format to transpile with named exports.
rollup config file looks like this:
module.exports = {
input: "src/index.js",
output: [
{
// we only supports browser environment
file: "build/bundles/bundle.cjs.js",
format: "cjs",
sourcemap: true,
name: "client",
exports: "named",
},
{
file: "build/bundles/bundle.iife.js",
format: "iife",
name: "client",
}
],
plugins: [
globals(),
babel({
babelHelpers: "runtime",
exclude: "node_modules/**", // Only transpile our source code
}),
resolve({
browser: true,
preferBuiltins: true,
}),
commonjs(),
banner(copyright),
],
};
When transpilation done we get something like this:

Works perfectly but after transpile it doesn't show methods signature:

Expected result without transpile:

Anyone knows why after transpile our source code missing our jsdoc signature? thanks.