js: Convert static/js/markdown_config.js to ES6 module.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2021-02-10 08:12:28 -08:00 committed by Tim Abbott
parent e6fce07b0e
commit ea5b1059af
1 changed files with 2 additions and 4 deletions

View File

@ -1,6 +1,4 @@
"use strict";
const people = require("./people");
import * as people from "./people";
/*
This config is in a separate file for partly
@ -24,7 +22,7 @@ const people = require("./people");
when the lookups fail.
*/
exports.get_helpers = () => ({
export const get_helpers = () => ({
// user stuff
get_actual_name_from_user_id: people.get_actual_name_from_user_id,
get_user_id_from_name: people.get_user_id_from_name,