vite-plugin-require-plus
v1.0.0
Published
can let vite projects to support require
Downloads
3
Maintainers
Readme
vite-plugin-require-plus
can let vite projects to support
require
vite-plugin-require-plus
Install and use to achieve painless support require
Install
npm i vite-plugin-require-plus | pnpm add vite-plugin-require-plus
Usage
import vitePluginRequire from "vite-plugin-require-plus";
export default {
plugins: [
vitePluginRequire({
// @fileRegex RegExp
// optional:default file processing rules are as follows
// fileRegex:/(.js?|.ts?|.jsx?|.tsx?|.vue)$/
}),
],
};