0.1.0 β’ Published 1 year ago
vite-plugin-alias-import-checker v0.1.0
English | δΈζ
π₯ Features
- Support different files ββ π .js, .jsx, .ts, .tsx, .vue, .svelte, and .astro
support error level: error | warn
for more usage please see the examples
π¦ Install
pnpm add vite-plugin-alias-import-checker -D
# or
yarn add vite-plugin-alias-import-checker -D
# or
npm i vite-plugin-alias-import-checker -D
βοΈ Options
interface Options {
/** default error */
level?: 'warn' | 'error'
}
π¨ Usage
import { defineConfig } from 'vite'
import aliasImportChecker from 'vite-plugin-alias-import-checker'
const config = defineConfig({
plugins: [
aliasImportChecker(),
],
})
export default config
π Example
Clone the project and start playgrounds by running:
pnpm play # corresponding to vue
# or
pnpm play:react # corresponds to react
pnpm play:astro # corresponds to astro
For specific configuration, see vue/vite.config.ts or react/vite.config.ts, astro.config.mjs
π License
vite-plugin-alias-import-checker is MIT licensed.