vite-plugins icon indicating copy to clipboard operation
vite-plugins copied to clipboard

Results 33 vite-plugins issues
Sort by recently updated
recently updated
newest added

in webpack's cjs bundle, has some package need require default, others need require all exports, can I config which need default and which need all exports?

### Versions - originjs: 1.0.3 - node: 14.19.0 - vite: 3.0.2 按照如下文件配置后,插件没有生效,commonjs代码没有被转成es代码,所以报错:The requested module '/_fusion/lib/index.js' does not provide an export named 'Affix' ```javascript import { defineConfig } from 'vite' import...

### Versions - originjs: 1.0.3 - node: 16.14.2 ### Reproduction https://stackblitz.com/edit/vitejs-vite-tsxtjf?file=vite.config.js,main.js Uncomment the part in `vite.config.js` Additional Details ### Steps to reproduce 1. Open the reproduction link above 2. Uncomment...

### Versions - [email protected] - @originjs/vite-plugin-commonjs 1.0.3 ### Reproduction 配置vite方式 ``` optimizeDeps.esbuildOptions = { plugins: [ // lessLoader() esbuildCommonjs(['testA']), ], } ``` testA代码 ``` const Form = require("testB"); ``` testB中输出方式...

const img = require(`../../assets/imgs/white.svg`) //使用模版字符串 没有转换 const img2 = require('../../assets/imgs/white.svg')

I've tried both of the following with various levels of configuration and can't get it to work. I've defined the `projectBasePath` to the root directory just above `src` and as...

### Versions - originjs: 1.0.2 - node: 14.18.1 ### Reproduction source code: ```javascript console.error("You need to import react !\nExample: react=require('react')"); ``` 'vite-plugin-commonjs' output: ```javascript import * as __require_for_vite_iuMxJX from "react"...

enhancement

### Versions - node: 10.19.0 ### Reproduction Attempt to import a minimized CommonJS module (I'm using zingchart-nodejs.min via @zingsoft/zingchart-svelte). ### What is Expected? It should be imported with no errors....

enhancement