12 lines
342 B
JavaScript
12 lines
342 B
JavaScript
import { defineConfig } from 'vite';
|
|
|
|
// https://vitejs.dev/config
|
|
export default defineConfig({
|
|
resolve: {
|
|
// Some libs that can run in both Web and Node.js, such as `axios`, we need to tell Vite to build them in Node.js.
|
|
browserField: false,
|
|
conditions: ['node'],
|
|
mainFields: ['module', 'jsnext:main', 'jsnext'],
|
|
},
|
|
});
|