Cannot see jsdoc methods suggestion after transpile with rollup

Viewed 82

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: enter image description here

Works perfectly but after transpile it doesn't show methods signature: enter image description here

Expected result without transpile: enter image description here

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

0 Answers
Related