chayns-api 1.0.30 → 1.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -53,7 +53,7 @@ function loadComponent(scope, module, url, skipCompatMode = false, preventSingle
|
|
|
53
53
|
const matchReactVersion = requiredVersion && _semver.default.satisfies(hostVersion, requiredVersion) && !Object.keys(__webpack_share_scopes__.default.react).some(version => {
|
|
54
54
|
return _semver.default.gt(version, hostVersion) && _semver.default.satisfies(version, requiredVersion);
|
|
55
55
|
});
|
|
56
|
-
if (!matchReactVersion || environment !== 'production') {
|
|
56
|
+
if (!matchReactVersion || environment !== 'production' || process.env.NODE_ENV === 'development') {
|
|
57
57
|
return {
|
|
58
58
|
default: Module.default.CompatComponent
|
|
59
59
|
};
|
|
@@ -48,7 +48,7 @@ export default function loadComponent(scope, module, url) {
|
|
|
48
48
|
const matchReactVersion = requiredVersion && semver.satisfies(hostVersion, requiredVersion) && !Object.keys(__webpack_share_scopes__.default.react).some(version => {
|
|
49
49
|
return semver.gt(version, hostVersion) && semver.satisfies(version, requiredVersion);
|
|
50
50
|
});
|
|
51
|
-
if (!matchReactVersion || environment !== 'production') {
|
|
51
|
+
if (!matchReactVersion || environment !== 'production' || process.env.NODE_ENV === 'development') {
|
|
52
52
|
return {
|
|
53
53
|
default: Module.default.CompatComponent
|
|
54
54
|
};
|