Skip to content

Latest commit

 

History

History
 
 

commonjs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

🛠 🛠 🛠 🛠 Refactoring 🛠 🛠 🛠 🛠


npm package

A pure JavaScript implementation of vite-plugin-commonjs

English | 简体中文

NPM version NPM Downloads

📢

  • 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"

Usage

import vue from '@vitejs/plugin-vue'
import commonjs from 'vite-plugin-commonjs'

export default {
  plugins: [
    vue(),
    commonjs(),
  ]
}