Skip to content

Commit e1b49bb

Browse files
committed
Revert #46931
1 parent cbeb8ff commit e1b49bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/browserIntegrationTest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// @ts-check
2+
const chalk = require("chalk");
23
const { join } = require("path");
34
const { readFileSync } = require("fs");
45
try {
@@ -17,7 +18,6 @@ const playwright = require("playwright");
1718
const debugging = false;
1819

1920
(async () => {
20-
const chalk = (await import("chalk")).default;
2121
for (const browserType of ["chromium", "firefox"]) {
2222
const browser = await playwright[browserType].launch({ headless: !debugging });
2323
const context = await browser.newContext();

scripts/build/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const mkdirp = require("mkdirp");
88
const del = require("del");
99
const File = require("vinyl");
1010
const ts = require("../../lib/typescript");
11+
const chalk = require("chalk");
1112
const which = require("which");
1213
const { spawn } = require("child_process");
1314
const { CancellationToken, CancelError, Deferred } = require("prex");
@@ -26,7 +27,6 @@ const { Readable, Duplex } = require("stream");
2627
* @property {boolean} [waitForExit=true]
2728
*/
2829
async function exec(cmd, args, options = {}) {
29-
const chalk = (await import("chalk")).default;
3030
return /**@type {Promise<{exitCode: number}>}*/(new Promise((resolve, reject) => {
3131
const { ignoreExitCode, cancelToken = CancellationToken.none, waitForExit = true } = options;
3232
cancelToken.throwIfCancellationRequested();

0 commit comments

Comments
 (0)