Convert to ESM

GitOrigin-RevId: b58b02f9e9c8d47909e95c3ade8e1bf33ed46c80
This commit is contained in:
Andrew Rumble
2025-11-06 09:05:47 +00:00
committed by Copybot
parent 0f4d5a7be6
commit 912324f560
78 changed files with 515 additions and 484 deletions
@@ -1,7 +1,9 @@
// @ts-check
const { ObjectId } = require('mongodb-legacy')
const _ = require('lodash')
const Settings = require('@overleaf/settings')
import mongodb from 'mongodb-legacy'
import _ from 'lodash'
import Settings from '@overleaf/settings'
const { ObjectId } = mongodb
/**
* @import { MongoProject } from "./types"
@@ -14,7 +16,7 @@ const ENGINE_TO_COMPILER_MAP = {
lualatex: 'lualatex',
}
module.exports = {
export default {
compilerFromV1Engine,
isArchived,
isTrashed,