sdk - 使用汇总转换后看不到 jsdoc 方法建议
问题描述
目前,我们正在使用具有 cjs 格式的汇总 js 导出我们的 sdk 库,以使用命名导出进行转换。
汇总配置文件如下所示:
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),
],
};
任何人都知道为什么在编译我们的源代码后缺少我们的 jsdoc 签名?谢谢。
解决方案
推荐阅读
- python-3.x - Python生成带有条件的元组组合
- c# - 在文本框中的光标上显示工具提示
- php - 尝试将文本字段中的数据插入数据库时出现 MySQL 错误
- html - 使用自定义 html 标签在页面上显示图像
- c# - C# 中的类关联(多对多关系)
- php - Codeigniter base_url() 将 index.php 添加到我的路径中
- mysql - mysql选择唯一项目的最大值
- android - Gradle:发布ApkProductionRelease到内部测试
- python - TensorFlow 本地训练 LibCurl 错误代码 6(tf.estimator.train_and_evaluate() 错误)
- python - 如何创建一个接受命令并打印“$”提示以指示用户可以使用 while 循环输入命令的 shell 程序?