feat: introduce dioc into hoppscotch-common
This commit is contained in:
13
packages/hoppscotch-common/src/modules/dioc.ts
Normal file
13
packages/hoppscotch-common/src/modules/dioc.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { HoppModule } from "."
|
||||
import { Container } from "dioc"
|
||||
import { diocPlugin } from "dioc/vue"
|
||||
|
||||
export default <HoppModule>{
|
||||
onVueAppInit(app) {
|
||||
// TODO: look into this
|
||||
// @ts-expect-error Something weird with Vue versions
|
||||
app.use(diocPlugin, {
|
||||
container: new Container(),
|
||||
})
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user