unplugin-auto-import
Auto import APIs on-demand for Vite, Webpack and Rollup (by unplugin)
vite-plugin-vue-layouts
Vue layout plugin for Vite (by JohnCampionJr)
Our great sponsors
unplugin-auto-import | vite-plugin-vue-layouts | |
---|---|---|
22 | 4 | |
2,929 | 415 | |
3.6% | - | |
7.8 | 7.3 | |
28 days ago | 2 months ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
unplugin-auto-import
Posts with mentions or reviews of unplugin-auto-import.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-10-05.
-
Welcome to the dark side. Ree.js awaits you!
Unplugin auto import
- Vue 3 vs Vue 2 so far? What's your opinion? Things I didn't like about Vue 3 compared to Vue 2
-
using types without import them
You looked through https://github.com/antfu/unplugin-auto-import/issues/61, https://github.com/unjs/unimport/pull/218 and https://github.com/antfu/unplugin-auto-import/issues/61?
-
Saw this on twitter last night ππ
unplugin-auto-import, let's you set what any library to be automatically imported. It has reasonable defaults for popular libraries.
-
Better DX in JS apps with unplugin-auto-import
AutoImport({ // targets to transform include: [ /\.[tj]sx?$/, // .ts, .tsx, .js, .jsx /\.vue$/, /\.vue\?vue/, // .vue /\.md$/, // .md ], // global imports to register imports: [ // presets 'vue', 'vue-router', // custom { '@vueuse/core': [ // named imports 'useMouse', // import { useMouse } from '@vueuse/core', // alias ['useFetch', 'useMyFetch'], // import { useFetch as useMyFetch } from '@vueuse/core', ], 'axios': [ // default imports ['default', 'axios'], // import { default as axios } from 'axios', ], '[package-name]': [ '[import-names]', // alias ['[from]', '[alias]'], ], }, ], // Enable auto import by filename for default module exports under directories defaultExportByFilename: false, // Auto import for module exports under directories // by default it only scan one level of modules under the directory dirs: [ // './hooks', // './composables' // only root modules // './composables/**', // all nested modules // ... ], // Filepath to generate corresponding .d.ts file. // Defaults to './auto-imports.d.ts' when `typescript` is installed locally. // Set `false` to disable. dts: './auto-imports.d.ts', // Auto import inside Vue template // see https://github.com/unjs/unimport/pull/15 and https://github.com/unjs/unimport/pull/72 vueTemplate: false, // Custom resolvers, compatible with `unplugin-vue-components` // see https://github.com/antfu/unplugin-auto-import/pull/23/ resolvers: [ /* ... */ ], // Generate corresponding .eslintrc-auto-import.json file. // eslint globals Docs - https://eslint.org/docs/user-guide/configuring/language-options#specifying-globals eslintrc: { enabled: false, // Default `false` filepath: './.eslintrc-auto-import.json', // Default `./.eslintrc-auto-import.json` globalsPropValue: true, // Default `true`, (true | false | 'readonly' | 'readable' | 'writable' | 'writeable') }, })
- Vue 3 over Nuxt 3
-
Import commonly-used module once, not in each component?
If you donβt want to write the import everywhere, use a unplug auto importing plug-in: https://github.com/antfu/unplugin-auto-import
-
Pinia as global $store
I forgot to specify, for the AutoImport I'm using unplugin-auto-import/vite
-
[NUXT3] Is there a more elegant way to get current route?
Others have already mentioned answers but I just want to say if you are bothered by importing reactive and computed take a look at https://github.com/antfu/unplugin-auto-import.
-
[AskJS] why no other javascript framework has implemented this feature (yet) ?
You can check out https://github.com/antfu/unplugin-auto-import
vite-plugin-vue-layouts
Posts with mentions or reviews of vite-plugin-vue-layouts.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-08-13.
-
Beginners guide β 3 ways to create a multiple layout system with Vue 3
I recently came across this and find it super easy to use: https://github.com/JohnCampionJr/vite-plugin-vue-layouts
-
Creating a Next-like layout system in Vue
So when using Vue we don't particularly have a layout system either unless you're using something like Nuxt or Vite Plugin Vue Layouts both of which abstract the problem away with some magic. Unfortunately, Nuxt doesn't have fantastic JSX/TSX support with Nuxt3 as of yet and the Vite Plugin is currently only designed to handle Single File Components (SFCs), so for a JSX/TSX user such as myself this is untenable.
-
Vite 2.x + Vue 3.x + quasar 2.x + windcss 3.x starter β‘
- Vite-plugin-vue-layouts - layouts for pages
-
Vitejs SSR (Fastify, Vuejs)
Vite plugin vue layouts
What are some alternatives?
When comparing unplugin-auto-import and vite-plugin-vue-layouts you can also consider the following projects:
unplugin-vue-components - π² On-demand components auto importing for Vue
vite-plugin-pages - File system based route generator for β‘οΈVite
pinia - π Intuitive, type safe, light and flexible Store for Vue using the composition api with DevTools support
unocss - The instant on-demand atomic CSS engine.
unplugin-vue2-script-setup - π‘ Bring `<script setup>` to Vue 2.
vite - Next generation frontend tooling. It's fast!
vite-quasar-api - spring boot jpa
Svelte - Cybernetically enhanced web apps
vitejs-ssr
unplugin-auto-import vs unplugin-vue-components
vite-plugin-vue-layouts vs vite-plugin-pages
unplugin-auto-import vs pinia
vite-plugin-vue-layouts vs unplugin-vue-components
unplugin-auto-import vs vite-plugin-pages
vite-plugin-vue-layouts vs unocss
unplugin-auto-import vs unplugin-vue2-script-setup
vite-plugin-vue-layouts vs pinia
unplugin-auto-import vs vite
vite-plugin-vue-layouts vs vite-quasar-api
unplugin-auto-import vs Svelte
vite-plugin-vue-layouts vs vitejs-ssr