chore: fix running dist package in nodejs

So we have to add ".js" to the import name...
This commit is contained in:
2025-04-13 13:29:36 +07:00
parent 358fe53be9
commit 6cf4096064
5 changed files with 15 additions and 8 deletions

View File

@ -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)];