Rename push to toast ?
#79
mrleblanc101
started this conversation in
Ideas
Replies: 2 comments
-
|
I guess I could use import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import Unimport from 'unimport/unplugin'
export default defineConfig({
plugins: [
vue(),
Unimport.vite({
addons: {
vueTemplate: true
},
imports: [{ name: 'push', as: 'toast', from: 'notivue' },]
})
]
}) |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@smastrom Push is just too generic of a name imho. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Why is the export named
push? Wouldn't it make more sense to name ittoastlike most other library ?I know I can rename it when I import it, but i'd have to rename it every time.
import { push as toast } from 'notivue';Beta Was this translation helpful? Give feedback.
All reactions