diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-10-20 18:22:46 +0300 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-10-20 18:23:35 +0300 |
commit | 2992f7a66643fcc89398c5c968f5b877f0fac72e (patch) | |
tree | 6a24a7589d42510bc52bec093cfe5de907d7caca /webpack.common.js | |
parent | 9f0608b55ec90a00da03896fb1f23d58361d09ee (diff) |
Fix isolated modules in Files app sidebar
"mainFilesSidebar.js" and "mainFilesSidebarLoader.js" were both bundled
in separate files, and both files were loaded on their own. Due to this
each loaded file had its own instance of the JavaScript modules instead
of using a shared one, which for example caused conversations to not be
properly left when the sidebar of a folder was opened. Now both files
are bundled in a single file, so all the elements act on the same shared
state.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'webpack.common.js')
-rw-r--r-- | webpack.common.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/webpack.common.js b/webpack.common.js index 1809c89cf..42f733aa7 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -8,8 +8,10 @@ module.exports = { 'admin-settings': path.join(__dirname, 'src', 'mainAdminSettings.js'), 'collections': path.join(__dirname, 'src', 'collections.js'), 'talk': path.join(__dirname, 'src', 'main.js'), - 'talk-files-sidebar': path.join(__dirname, 'src', 'mainFilesSidebar.js'), - 'talk-files-sidebar-loader': path.join(__dirname, 'src', 'mainFilesSidebarLoader.js'), + 'talk-files-sidebar': [ + path.join(__dirname, 'src', 'mainFilesSidebar.js'), + path.join(__dirname, 'src', 'mainFilesSidebarLoader.js'), + ], 'talk-public-share-auth-sidebar': path.join(__dirname, 'src', 'mainPublicShareAuthSidebar.js'), 'talk-public-share-sidebar': path.join(__dirname, 'src', 'mainPublicShareSidebar.js'), 'flow': path.join(__dirname, 'src', 'flow.js'), |