mirror of
https://github.com/certd/certd.git
synced 2026-06-25 12:17:32 +08:00
refactor(plugins): 部分插件改用运行时导入依赖替代静态导入
将所有插件内的静态依赖导入改为通过access.importRuntime动态导入,并调整package.json依赖顺序
This commit is contained in:
@@ -12,7 +12,7 @@ export class FtpClient {
|
||||
}
|
||||
|
||||
async connect(callback: (client: FtpClient) => Promise<any>) {
|
||||
const ftp = await import("basic-ftp");
|
||||
const ftp = await this.access.importRuntime("basic-ftp");
|
||||
const Client = ftp.Client;
|
||||
const client = new Client();
|
||||
client.ftp.verbose = true;
|
||||
|
||||
Reference in New Issue
Block a user