0.1.0 β€’ Published 1 year ago

vite-plugin-alias-import-checker v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

NPM version NPM downloads

Test

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

img img img

πŸ“„ License

vite-plugin-alias-import-checker is MIT licensed.

0.1.0

1 year ago

0.0.1

1 year ago