We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0258207 commit 352f20eCopy full SHA for 352f20e
packages/lib/src/prod/expose-production.ts
@@ -239,7 +239,11 @@ export function prodExposePlugin(
239
const slashPath = fileRelativePath.replace(/\\/g, '/')
240
remoteEntryChunk.code = remoteEntryChunk.code.replace(
241
`\${__federation_expose_${expose[0]}}`,
242
- `./${slashPath}`
+ [
243
+ viteConfigResolved.config?.base?.replace(/\/+$/, '') || '.',
244
+ viteConfigResolved.config?.build?.assetsDir?.replace(/\/+$/, ''),
245
+ slashPath
246
+ ].filter(Boolean).join('/')
247
)
248
}
249
0 commit comments