mirror of
https://github.com/mattermost/focalboard.git
synced 2025-01-08 15:06:08 +02:00
MM-50810 Fix module loading issues caused by shared modules
This commit is contained in:
parent
f2a7d613eb
commit
3122e9c3cf
@ -132,11 +132,18 @@ if (TARGET_IS_PRODUCT) {
|
|||||||
const sharedObject = {};
|
const sharedObject = {};
|
||||||
|
|
||||||
for (const packageName of packageNames) {
|
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] = {
|
sharedObject[packageName] = {
|
||||||
requiredVersion: false,
|
|
||||||
|
// Ensure only one copy of this package is ever loaded
|
||||||
singleton: true,
|
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
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user