21 lines
505 B
JavaScript
21 lines
505 B
JavaScript
import react from '@vitejs/plugin-react';
|
|
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
|
import { defineConfig } from 'vite';
|
|
|
|
export default defineConfig({
|
|
// publicDir: './public',
|
|
build: "esnext",
|
|
plugins: [
|
|
nodeResolve({
|
|
// browser: true
|
|
exportConditions: ['node'],
|
|
}),
|
|
react({
|
|
// Use React plugin in all *.jsx and *.tsx files
|
|
include: '**/*.{jsx,tsx}',
|
|
babel: {
|
|
plugins: ['babel-plugin-styled-components'],
|
|
},
|
|
}),
|
|
],
|
|
}); |