@openmrs/rspack-config 6.3.1-pre.3055 → 6.3.1-pre.3059
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
|
@@ -268,12 +268,12 @@ exports.default = (env, argv = {}) => {
|
|
|
268
268
|
if (depName === 'swr') {
|
|
269
269
|
// SWR is annoying with Module Federation
|
|
270
270
|
// See: https://github.com/webpack/webpack/issues/16125 and https://github.com/vercel/swr/issues/2356
|
|
271
|
-
obj['swr/
|
|
271
|
+
obj['swr/'] = {
|
|
272
272
|
requiredVersion: (_a = peerDependencies['swr']) !== null && _a !== void 0 ? _a : false,
|
|
273
273
|
strictVersion: false,
|
|
274
274
|
singleton: true,
|
|
275
|
-
import: 'swr/
|
|
276
|
-
shareKey: 'swr/
|
|
275
|
+
import: 'swr/',
|
|
276
|
+
shareKey: 'swr/',
|
|
277
277
|
shareScope: 'default',
|
|
278
278
|
version: require('swr/package.json').version,
|
|
279
279
|
};
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -297,12 +297,12 @@ export default (env: Record<string, string>, argv: Record<string, string> = {})
|
|
|
297
297
|
if (depName === 'swr') {
|
|
298
298
|
// SWR is annoying with Module Federation
|
|
299
299
|
// See: https://github.com/webpack/webpack/issues/16125 and https://github.com/vercel/swr/issues/2356
|
|
300
|
-
obj['swr/
|
|
300
|
+
obj['swr/'] = {
|
|
301
301
|
requiredVersion: peerDependencies['swr'] ?? false,
|
|
302
302
|
strictVersion: false,
|
|
303
303
|
singleton: true,
|
|
304
|
-
import: 'swr/
|
|
305
|
-
shareKey: 'swr/
|
|
304
|
+
import: 'swr/',
|
|
305
|
+
shareKey: 'swr/',
|
|
306
306
|
shareScope: 'default',
|
|
307
307
|
version: require('swr/package.json').version,
|
|
308
308
|
};
|