Skip to content

Commit 7933df9

Browse files
committed
Switch octokit to a dynamic import.
1 parent 4d9afaf commit 7933df9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Extension/translations_auto_pr.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
const fs = require("fs-extra");
44
const cp = require("child_process");
5-
const Octokit = require('@octokit/rest')
5+
let Octokit;
6+
import('@octokit/rest').then(module => {
7+
Octokit = module.Octokit;
8+
});
69
const path = require('path');
710
const parseGitConfig = require('parse-git-config');
811

0 commit comments

Comments
 (0)