@openmrs/webpack-config 6.3.1-pre.3047 → 6.3.1-pre.3058
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/dist/index.js +3 -3
- package/package.json +1 -1
- package/src/index.ts +3 -3
package/dist/index.js
CHANGED
|
@@ -249,12 +249,12 @@ exports.default = (env, argv = {}) => {
|
|
|
249
249
|
if (depName === 'swr') {
|
|
250
250
|
// SWR is annoying with Module Federation
|
|
251
251
|
// See: https://github.com/webpack/webpack/issues/16125 and https://github.com/vercel/swr/issues/2356
|
|
252
|
-
obj['swr/
|
|
252
|
+
obj['swr/'] = {
|
|
253
253
|
requiredVersion: (_a = peerDependencies['swr']) !== null && _a !== void 0 ? _a : false,
|
|
254
254
|
strictVersion: false,
|
|
255
255
|
singleton: true,
|
|
256
|
-
import: 'swr/
|
|
257
|
-
shareKey: 'swr/
|
|
256
|
+
import: 'swr/',
|
|
257
|
+
shareKey: 'swr/',
|
|
258
258
|
shareScope: 'default',
|
|
259
259
|
version: require('swr/package.json').version,
|
|
260
260
|
};
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -298,12 +298,12 @@ export default (env: Record<string, string>, argv: Record<string, string> = {})
|
|
|
298
298
|
if (depName === 'swr') {
|
|
299
299
|
// SWR is annoying with Module Federation
|
|
300
300
|
// See: https://github.com/webpack/webpack/issues/16125 and https://github.com/vercel/swr/issues/2356
|
|
301
|
-
obj['swr/
|
|
301
|
+
obj['swr/'] = {
|
|
302
302
|
requiredVersion: peerDependencies['swr'] ?? false,
|
|
303
303
|
strictVersion: false,
|
|
304
304
|
singleton: true,
|
|
305
|
-
import: 'swr/
|
|
306
|
-
shareKey: 'swr/
|
|
305
|
+
import: 'swr/',
|
|
306
|
+
shareKey: 'swr/',
|
|
307
307
|
shareScope: 'default',
|
|
308
308
|
version: require('swr/package.json').version,
|
|
309
309
|
};
|