originjs/origin.js

An error is reported when the definedConfig method provided by the Vite is used.

Closed this issue · 0 comments

报错的配置 this.localConfig = requireEsm(${rootDir}/vite.config.ts).default

  • 使用vite提供的方法defineConfig 报错
    vite.config.ts
import { defineConfig } from 'vite';
export default defineConfig({
})

image

  • 使用export default则正常
    vite.config.ts
export default {
}