We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, Sorry, this's a question, not a issue😅
In the Vue project, we can auto import inside Vue template, like this:
// vite.config.js import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import AutoImport from 'unplugin-auto-import/vite' export default defineConfig({ plugins: [ vue(), AutoImport({ vueTemplate: true, // has this option { 'ziggy-js': [ ['default', 'route'], ], }, }), ], })
And without import route from 'ziggy-js' in .vue file.
import route from 'ziggy-js'
// App.vue <template> <a :href="route('login')">Login</a> </template>
But in Svelte, can the same function be implement?
Thanks!
The text was updated successfully, but these errors were encountered:
我也遇到了这个问题,在模板中无法使用自动导入的方法
Sorry, something went wrong.
可能命名冲突,尝试使用其他命名并且不包含$ ,解决了
No branches or pull requests
Hello,
Sorry, this's a question, not a issue😅
In the Vue project, we can auto import inside Vue template, like this:
And without
import route from 'ziggy-js'
in .vue file.But in Svelte, can the same function be implement?
Thanks!
The text was updated successfully, but these errors were encountered: