22 lines
441 B
TypeScript
22 lines
441 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import dts from "vite-plugin-dts";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
dts({
|
|
insertTypesEntry: true,
|
|
}),
|
|
react({
|
|
jsxImportSource: "@emotion/react",
|
|
babel: {
|
|
plugins: ["@emotion/babel-plugin"],
|
|
},
|
|
}),
|
|
],
|
|
resolve: {
|
|
alias: [{ find: "@", replacement: "/src" }],
|
|
},
|
|
});
|