mirror of
https://github.com/zulip/zulip.git
synced 2025-10-31 20:13:46 +00:00
app: Prepare JS files for consumption by webpack.
This commit prepares the frontend code to be consumed by webpack. It is a hack: In theory, modules should be declaring and importing the modules they depend on and the globals they expose directly. However, that requires significant per-module work, which we don't really want to block moving our toolchain to webpack on. So we expose the modules by setting window.varName = varName; as needed in the js files.
This commit is contained in:
committed by
Tim Abbott
parent
b10822efcf
commit
6d255efe4c
@@ -429,3 +429,4 @@ return exports;
|
||||
if (typeof module !== 'undefined') {
|
||||
module.exports = input_pill;
|
||||
}
|
||||
window.input_pill = input_pill;
|
||||
|
||||
Reference in New Issue
Block a user