@openmrs/webpack-config 5.2.1-pre.1111 → 5.2.1-pre.1120
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.
- package/.turbo/turbo-build.log +1 -1
- package/dist/index.js +3 -3
- package/package.json +2 -2
- package/src/index.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[
|
|
1
|
+
[32m@openmrs/webpack-config:build[0m: cache hit, replaying output [2m32772dc9f7a63943[0m
|
package/dist/index.js
CHANGED
|
@@ -221,12 +221,12 @@ exports.default = (env, argv = {}) => {
|
|
|
221
221
|
...Object.keys(peerDependencies),
|
|
222
222
|
"@openmrs/esm-framework/src/internal",
|
|
223
223
|
].reduce((obj, depName) => {
|
|
224
|
-
var _a;
|
|
224
|
+
var _a, _b;
|
|
225
225
|
if (depName === "swr") {
|
|
226
226
|
// SWR is annoying with Module Federation
|
|
227
227
|
// See: https://github.com/webpack/webpack/issues/16125 and https://github.com/vercel/swr/issues/2356
|
|
228
228
|
obj["swr/"] = {
|
|
229
|
-
requiredVersion:
|
|
229
|
+
requiredVersion: (_a = peerDependencies["swr"]) !== null && _a !== void 0 ? _a : false,
|
|
230
230
|
singleton: true,
|
|
231
231
|
import: "swr/",
|
|
232
232
|
shareKey: "swr/",
|
|
@@ -236,7 +236,7 @@ exports.default = (env, argv = {}) => {
|
|
|
236
236
|
}
|
|
237
237
|
else {
|
|
238
238
|
obj[depName] = {
|
|
239
|
-
requiredVersion: (
|
|
239
|
+
requiredVersion: (_b = peerDependencies[depName]) !== null && _b !== void 0 ? _b : false,
|
|
240
240
|
singleton: true,
|
|
241
241
|
import: depName,
|
|
242
242
|
shareKey: depName,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/webpack-config",
|
|
3
|
-
"version": "5.2.1-pre.
|
|
3
|
+
"version": "5.2.1-pre.1120",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "src/index.ts",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"typescript": "^4.6.4"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "31eb0be91128ff2c8d5925f44c4a0cc5c7e4c7bc"
|
|
56
56
|
}
|
package/src/index.ts
CHANGED
|
@@ -271,7 +271,7 @@ export default (
|
|
|
271
271
|
// SWR is annoying with Module Federation
|
|
272
272
|
// See: https://github.com/webpack/webpack/issues/16125 and https://github.com/vercel/swr/issues/2356
|
|
273
273
|
obj["swr/"] = {
|
|
274
|
-
requiredVersion:
|
|
274
|
+
requiredVersion: peerDependencies["swr"] ?? false,
|
|
275
275
|
singleton: true,
|
|
276
276
|
import: "swr/",
|
|
277
277
|
shareKey: "swr/",
|