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