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/stats/stats.js to ES6 module.

Anders Kaseorg3a110e641991
diff --git a/static/js/stats/stats.js b/static/js/stats/stats.js
index 0b67ce02bb1..dcc249b84a4 100644
--- a/static/js/stats/stats.js
+++ b/static/js/stats/stats.js
@@ -1,6 +1,4 @@
-"use strict";
-
-const Plotly = require("plotly.js/lib/core");
+import Plotly from "plotly.js/lib/core";
Plotly.register([require("plotly.js/lib/bar"), require("plotly.js/lib/pie")]);