0.1.2 • Published 2 years ago

vite-plugin-resolve-adapter v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

vite-plugin-resolve-adapter

This tool is capable of adapting file suffixes based on the environment when retrieving files, in order to differentiate between multiple environment logics. It is similar to Taro's environment adaptation solution, but implemented in Vite.

Features

  • support relative project file enable
  • enable node_modules file include suffix adapter
  • support alias path support suffix adapter

Try it now

pnpm i vite-plugin-resolve-adapter@latest

Usage

// vite.config.ts
import { defineConfig } from 'vite'
import resolveAdapter from 'vite-plugin-resolve-adapter'

export default defineConfig({
  plugins: [resolveAdapter()],
})

LICENSE

MIT License © 2022 zwkang

0.1.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.0.1-beta.3

2 years ago

0.0.1-beta.2

3 years ago

0.0.1-beta.0

3 years ago