From ea5b1059afe3927ade6b838c01ca8d2f5342287c Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 10 Feb 2021 08:12:28 -0800 Subject: [PATCH] js: Convert static/js/markdown_config.js to ES6 module. Signed-off-by: Anders Kaseorg --- static/js/markdown_config.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/static/js/markdown_config.js b/static/js/markdown_config.js index e210e89d45..56aef4e33c 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,