本地插件的限制
🌐 Native addon limitations
本地插件(.node 文件)不能直接从 VFS 加载,因为 process.dlopen() 需要真实文件系统上的文件。要在带 VFS 的 SEA 中使用本地插件,首先把资源写入临时文件。查看 在注入的主脚本中使用本地插件 获取示例。
🌐 Native addons (.node files) cannot be loaded directly from the VFS because
process.dlopen() requires files on the real file system. To use native
addons in a SEA with VFS, write the asset to a temporary file first. See
Using native addons in the injected main script for an example.