diff --git a/README.md b/README.md index 485da1d..41f1947 100644 --- a/README.md +++ b/README.md @@ -214,12 +214,11 @@ This way downloaded types will always correspond to the latest compatible versio ## Plugin Options -| Option | Value | Default | Description | -|-----------------------------------:|:--------------------:|:---------:|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| `cloudbedsRemoteManifestsBaseUrl` | `string` | | Base URL for remote manifest files (a.k.a remote entry configs) that is specific to Cloudbeds microapps

_Examples:_
`http://localhost:4480/remotes/dev`
`https://cb-front.cloudbeds-dev.com/remotes/[env]`
`use-devbox-name` | -| `doNotUseCloudbedsRemoteManifests` | `boolean` | `false` | This plugin was built to be configuration-less for Cloudbeds microapps. This can be disabled if necessary. In that case the `cloudbedsRemoteManifestsBaseUrl` is ignored | -| `syncTypesIntervalInSeconds` | `number`, `0`, `-1` | `60` | Synchronize types continusouly with a specified value in seconds.

`0` - disables continuous synchronization.
`-1` - disables the plugin | -| `remoteManifestUrls` | `RemoteManifestUrls` | | URLs to remote manifest files. A manifest contains a URL to a remote entry that is substituted in runtime. Multiple remote entries is supported via `registry` field.

More details available in [this section](#templated-remote-urls) | +| Option | Value | Description | +|----------------------------------:|:--------------------:|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| `cloudbedsRemoteManifestsBaseUrl` | `string` | Base URL for remote manifest files (a.k.a remote entry configs) that is specific to Cloudbeds microapps

_Examples:_
`http://localhost:4480/remotes/dev`
`https://cb-front.cloudbeds-dev.com/remotes/[env]`
`use-devbox-name` | +| `syncTypesIntervalInSeconds` | `number`, `0`, `-1` | Synchronize types continusouly with a specified value in seconds.

`0` - disables continuous synchronization.
`-1` - disables the plugin | +| `remoteManifestUrls` | `RemoteManifestUrls` | URLs to remote manifest files. A manifest contains a URL to a remote entry that is substituted in runtime. Multiple remote entries is supported via `registry` field.

More details available in [this section](#templated-remote-urls) | ## Templated Remote URLs diff --git a/package.json b/package.json index da55e3f..a1c5bf6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cloudbeds/webpack-module-federation-types-plugin", - "version": "1.3.0", + "version": "1.2.0", "description": "Webpack module federation tools to share types among module-federated apps/components", "license": "UNLICENSED", "author": "Stepan Prybylynskyi ", diff --git a/src/helpers/compileTypes.ts b/src/helpers/compileTypes.ts index cff69f6..14cc5d0 100644 --- a/src/helpers/compileTypes.ts +++ b/src/helpers/compileTypes.ts @@ -82,7 +82,7 @@ export function rewritePathsWithExposedFederatedModules( let federatedModulePath = exposePath ? `${federationConfig.name}/${exposePath}` - : `${federationConfig.name}@remote-types/${importPath}`; + : `@remote-types/${federationConfig.name}/${importPath}`; federatedModulePath = federatedModulePath.replace(/\/index$/, '')