Convert app.js to ES modules

GitOrigin-RevId: 7819cc8c8235b93b985c1c07c7dec778c93d9134
This commit is contained in:
andrew rumble
2024-10-14 11:04:23 +00:00
committed by Copybot
parent 209a3670ce
commit e128e8ea32
16 changed files with 130 additions and 137 deletions
+3 -3
View File
@@ -2,7 +2,7 @@
"name": "@overleaf/web",
"description": "The HTTP front end for Overleaf",
"private": true,
"main": "app.js",
"main": "app.mjs",
"directories": {
"public": "./public"
},
@@ -15,8 +15,8 @@
"test:unit:app": "npm run test:unit:run_dir -- test/unit/src",
"test:frontend": "NODE_ENV=test TZ=GMT mocha --recursive --timeout 5000 --exit --extension js,jsx,mjs,ts,tsx --grep=$MOCHA_GREP --require test/frontend/bootstrap.js --ignore '**/*.spec.{js,jsx,ts,tsx}' --ignore '**/helpers/**/*.{js,jsx,ts,tsx}' test/frontend modules/*/test/frontend",
"test:frontend:coverage": "c8 --all --include 'frontend/js' --include 'modules/*/frontend/js' --exclude 'frontend/js/vendor' --reporter=lcov --reporter=text-summary npm run test:frontend",
"start": "node app.js",
"nodemon": "node --watch app.js --watch-locales",
"start": "node app.mjs",
"nodemon": "node --watch app.mjs --watch-locales",
"webpack": "webpack serve --config webpack.config.dev.js",
"webpack:production": "webpack --config webpack.config.prod.js",
"webpack:profile": "webpack --config webpack.config.prod.js --profile --json > stats.json",