@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 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/_internal'] = {
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/_internal',
276
- shareKey: 'swr/_internal',
275
+ import: 'swr/',
276
+ shareKey: 'swr/',
277
277
  shareScope: 'default',
278
278
  version: require('swr/package.json').version,
279
279
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/rspack-config",
3
- "version": "6.3.1-pre.3055",
3
+ "version": "6.3.1-pre.3059",
4
4
  "license": "MPL-2.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
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/_internal'] = {
300
+ obj['swr/'] = {
301
301
  requiredVersion: peerDependencies['swr'] ?? false,
302
302
  strictVersion: false,
303
303
  singleton: true,
304
- import: 'swr/_internal',
305
- shareKey: 'swr/_internal',
304
+ import: 'swr/',
305
+ shareKey: 'swr/',
306
306
  shareScope: 'default',
307
307
  version: require('swr/package.json').version,
308
308
  };