refactor(plugins): 部分插件改用运行时导入依赖替代静态导入

将所有插件内的静态依赖导入改为通过access.importRuntime动态导入,并调整package.json依赖顺序
This commit is contained in:
xiaojunnuo
2026-06-21 23:43:19 +08:00
parent 1f1b1858c7
commit f32c99d4a1
15 changed files with 42 additions and 42 deletions
@@ -10,7 +10,7 @@ export class GoogleClient {
}
async getEab() {
// https://cloud.google.com/docs/authentication/api-keys-use#using-with-client-libs
const { v1 } = await import("@google-cloud/publicca");
const { v1 } = await this.access.importRuntime("@google-cloud/publicca");
// process.env.HTTPS_PROXY = "http://127.0.0.1:10811";
const access = this.access;
if (!access.serviceAccountSecret) {