originjs/vite-plugin-federation

provide/inject

n0inzisch opened this issue · 0 comments

Versions

  • vite-plugin-federation: 1.2.3
  • vite: 4.3.9

Reproduction

I use primevue in my modules for ui. There exists a DialogService which is initialized in main.ts
vue.use(DialogService)

this provides an instance:
app.config.globalProperties.$dialog = DialogService;
app.provide(usedialog.PrimeVueDialogSymbol, DialogService);

the remote modules cant inject the DialogServices.

so it seems that the provide/inject dont work with federation-plugin.