Skip to content

Commit 47d76c7

Browse files
committed
fix: dev mode error
1 parent 7f7ceac commit 47d76c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/lib/src/dev/remote-development.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const loadJS = (url, fn) => {
4949
const scriptTypes = ['var'];
5050
const importTypes = ['esm', 'systemjs']
5151
function get(name){
52-
return import(name).then(module => ()=>module?.default ?? module)
52+
return import(/* @vite-ignore */ name).then(module => ()=>module?.default ?? module)
5353
}
5454
const shareScope = {
5555
${getModuleMarker('shareScope')}
@@ -226,7 +226,7 @@ export {__federation_method_ensure, __federation_method_getRemote};`
226226
let str = ''
227227
if (typeof obj === 'object') {
228228
const url = `'${protocol}://${hostname.name}:${port}/${cacheDir}/${sharedName}.js?v=${viteVersion}'`
229-
str += `get:()=> ()=> get(${url})`
229+
str += `get:()=> get(${url})`
230230
res.push(`'${sharedName}':{'${obj.version}':{${str}}}`)
231231
}
232232
})

0 commit comments

Comments
 (0)