1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-12-21 13:38:56 +02:00

Merge pull request #4605 from mattermost/MM-50810_fix-shared-modules

This commit is contained in:
Caleb Roseland 2023-02-28 10:48:28 -06:00 committed by GitHub
commit a6b3ea6fc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -132,11 +132,18 @@ if (TARGET_IS_PRODUCT) {
const sharedObject = {};
for (const packageName of packageNames) {
// Set both versions to false so that the version of this module provided by the web app will be used
sharedObject[packageName] = {
requiredVersion: false,
// Ensure only one copy of this package is ever loaded
singleton: true,
version: false,
// Set this to false to prevent Webpack from packaging any "fallback" version of this package so that
// only the version provided by the web app will be used
import: false,
// Set these to false so that any version provided by the web app will be accepted
requiredVersion: false,
version: false
};
}