Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

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

Anders Kaseorgea5b1059afe3
diff --git a/static/js/markdown_config.js b/static/js/markdown_config.js
index e210e89d45a..56aef4e33c8 100644
--- a/static/js/markdown_config.js
+++ b/static/js/markdown_config.js
@@ -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,