Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装第三方npm库的调用与打包教程 #7

Open
HowcanoeWang opened this issue Aug 21, 2023 · 0 comments
Open

安装第三方npm库的调用与打包教程 #7

HowcanoeWang opened this issue Aug 21, 2023 · 0 comments

Comments

@HowcanoeWang
Copy link

有时候开发插件不可避免的要使用一些第三方库,教程里能否增加一部分这方面的内容方便快速入门?

比如,如何调用node自身的fs、path这类内置库并打包(如使用const fs = window.require('fs')可以成功打包,但是没法在伺服环境中使用,这种坑可能也需要讲解一下?)

以及如何安装并调用其他第三方库,如ffmpeg.js langchain.js这种,直接用pnpm安装然后在index.ts 中import,在编译的时候往往会有依赖包报错,感觉像是electron限制了打包能力。

希望有时间出一个这方面的教程讲解一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant