click_handlers: Use WinChan as a module.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2020-07-27 15:52:14 -07:00 committed by Tim Abbott
parent 114cc1ec25
commit eb09c137cf
4 changed files with 2 additions and 3 deletions

View File

@ -106,7 +106,6 @@
"MessageListView": false,
"Plotly": false,
"UserSearch": false,
"WinChan": false,
"activity": false,
"admin": false,
"alert_words": false,

View File

@ -7,7 +7,6 @@ import "jquery-caret-plugin/src/jquery.caret.js";
import "../../third/jquery-idle/jquery.idle.js";
import "spectrum-colorpicker";
import "jquery-validation/dist/jquery.validate.js";
import "winchan/winchan.js";
import "handlebars/dist/cjs/handlebars.runtime.js";
import "flatpickr/dist/flatpickr.js";
import "flatpickr/dist/plugins/confirmDate/confirmDate.js";

View File

@ -1,4 +1,6 @@
const _ = require("lodash");
const WinChan = require("winchan");
// You won't find every click handler here, but it's a good place to start!
const render_buddy_list_tooltip = require("../templates/buddy_list_tooltip.hbs");

View File

@ -247,7 +247,6 @@ export default (env?: string): webpack.Configuration[] => {
{path: "../static/js/debug.js"},
{path: "jquery/dist/jquery.js", name: ["$", "jQuery"]},
{path: "handlebars/dist/cjs/handlebars.runtime.js", name: "Handlebars"},
{path: "winchan/winchan.js", name: "WinChan"},
];
config.module.rules.unshift(...getExposeLoaders(exposeOptions));