phosphor-icons / vue

A flexible icon family for Vue
https://phosphoricons.com
MIT License
199 stars 20 forks source link

Global import broken #34

Closed m-glass closed 1 year ago

m-glass commented 1 year ago

🐛 The bug

With the previous version phosphor-vue, global import was possible using

import { createApp } from 'vue'
import PhosphorVue from 'phosphor-vue'

const app = createApp(App)
app
  .use(PhosphorVue)

app.mount('#app')

With the new version, this is not possible anymore.

🛠ī¸ To reproduce

https://stackblitz.com/edit/vue-dniokx?file=src/main.js

🌈 Expected behaviour

that switching to the new package works straightforward (just like written in the README.md)

ℹī¸ Additional context

No response

dnlsndr commented 1 year ago

Thank's for letting us know. That must've gone under somewhere. Will see what I can do.

dnlsndr commented 1 year ago

I've now implemented global imports, check the release notes: https://github.com/phosphor-icons/vue/releases/tag/v2.1.4