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: Consistently use ES module from SimpleBar.

Anders Kaseorg41dd50948a6c
diff --git a/static/js/portico/help.js b/static/js/portico/help.js
index ccf217aef9b..04a93d8c3fe 100644
--- a/static/js/portico/help.js
+++ b/static/js/portico/help.js
@@ -1,5 +1,5 @@
import $ from "jquery";
-import SimpleBar from "simplebar/dist/simplebar";
+import SimpleBar from "simplebar";
import * as common from "../common";
diff --git a/static/js/ui.js b/static/js/ui.js
index ed251903e13..204a1adb0d7 100644
--- a/static/js/ui.js
+++ b/static/js/ui.js
@@ -1,5 +1,5 @@
import $ from "jquery";
-import SimpleBar from "simplebar/dist/simplebar";
+import SimpleBar from "simplebar";
import * as blueslip from "./blueslip";
import * as common from "./common";
diff --git a/tools/webpack.assets.json b/tools/webpack.assets.json
index 686e7ed4f09..013b33fe192 100644
--- a/tools/webpack.assets.json
+++ b/tools/webpack.assets.json
@@ -49,7 +49,7 @@
"help": [
"./static/js/bundles/portico",
"simplebar/dist/simplebar.css",
- "simplebar/dist/simplebar",
+ "simplebar",
"./static/js/portico/help",
"./static/js/portico/tabbed-instructions"
],