2025-09-16 16:19:29 +08:00

16 lines
809 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 常规集成的V2NIMConst
import { V2NIMConst } from "nim-web-sdk-ng/dist/esm/nim";
// ESM 版本集成的V2NIMConst
/**
* NIM SDK 默认导出 UMDUniversal Module Definition格式的产物这种格式的文件可以在多种环境中使用。
* 当应用对包体积有更严格的要求,例如小程序应用,则可以使用 ESMECMAScript Module格式的 SDK。ESM 是 JavaScript 的原生模块系统,
* 允许更细粒度的模块控制和更有效的打包。再配合 webpack 实现 tree-shaking一种去除代码中未引用部分的方式从而进一步降低 NIM SDK 产物体积。
* 具体参考文档 https://doc.yunxin.163.com/messaging2/guide/DcyMjA1Njk?platform=client
*/
//@ts-ignore
// import { V2NIMConst } from '../esmNim.js'
export { V2NIMConst };