chore: fix running dist package in nodejs
So we have to add ".js" to the import name...
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import { devices, type BrowserContext, type Locator } from "patchright";
|
||||
import logger from "../logger";
|
||||
import * as twitch from "../website/twitch";
|
||||
import * as constants from "../constants";
|
||||
import logger from "../logger.js";
|
||||
import * as twitch from "../website/twitch.js";
|
||||
import * as constants from "../constants.js";
|
||||
|
||||
async function spawn(context: BrowserContext, targetUrl: string, changeViewport: boolean = false, spawnId: string = "unknown") {
|
||||
const server = constants.REFLECT4_SERVERS[Math.floor(Math.random() * constants.REFLECT4_SERVERS.length)];
|
||||
|
||||
Reference in New Issue
Block a user