mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
web: Set "type": "module" and convert various CJS files to ESM.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
905fc3b50e
commit
01540b45b0
@@ -1,13 +1,11 @@
|
||||
"use strict";
|
||||
|
||||
/* global $, CSS */
|
||||
|
||||
const fs = require("node:fs");
|
||||
const path = require("node:path");
|
||||
const {parseArgs} = require("node:util");
|
||||
import * as fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import {parseArgs} from "node:util";
|
||||
|
||||
require("css.escape");
|
||||
const puppeteer = require("puppeteer");
|
||||
import "css.escape";
|
||||
import puppeteer from "puppeteer";
|
||||
|
||||
const usage =
|
||||
"Usage: thread-screenshot.js <narrow_uri> <narrow> <message_id> <image_path> <realm_url>";
|
||||
|
||||
Reference in New Issue
Block a user