A pure JavaScript implementation of vite-plugin-commonjs
English | 简体中文
- The plugin only work in the
vite serve
phase - In the
vite build
phase, CommonJs syntax will be supported by built-in "@rollup/plugin-commonjs"
import vue from '@vitejs/plugin-vue'
import commonjs from 'vite-plugin-commonjs'
export default {
plugins: [
vue(),
commonjs(),
]
}