From 86c5fee033652d7962c780e46d57b53b90c77572 Mon Sep 17 00:00:00 2001 From: SirStendec Date: Fri, 18 May 2018 17:48:10 -0400 Subject: [PATCH] More webpack 4 code. Make sure to asynchronously await the availability of our webpack hook everywhere that we use it that it's reasonable to wait. This adds a new module called switchboard that abuses the root React Router instance to forcibly load a chunk, letting us grab `require()` quickly rather than waiting potentially forever for another chunk to be loaded due to user action, etc. --- changelog.html | 5 + src/main.js | 2 +- src/sites/twitch-twilight/index.js | 5 +- .../modules/chat/emote_menu.jsx | 4 +- .../twitch-twilight/modules/chat/index.js | 4 +- .../twitch-twilight/modules/chat/line.js | 5 +- .../modules/chat/rich_content.jsx | 4 +- .../modules/chat/settings_menu.jsx | 4 +- .../modules/chat/tab_completion.jsx | 4 +- src/sites/twitch-twilight/switchboard.js | 93 +++++++++++++++++++ src/utilities/compat/apollo.js | 10 +- src/utilities/compat/webmunch.js | 6 +- src/utilities/module.js | 6 +- 13 files changed, 128 insertions(+), 24 deletions(-) create mode 100644 src/sites/twitch-twilight/switchboard.js diff --git a/changelog.html b/changelog.html index 9fccc8b4..2b57181c 100644 --- a/changelog.html +++ b/changelog.html @@ -1,3 +1,8 @@ +
4.0.0-rc1.8@498c1b079484a762958a
+ +
4.0.0-rc1.7@498c1b079484a762958a