create-vite-app-cli
Version:
a fast create webapp template cli, perfect engineering development experience, currently supported template presets include: - `react-ts` (React + TypeScript + Vite + Pnpm + Zustand + Openapi + Docker) - `vue-ts` (Vue 3 + TypeScript + Vite + Pnpm + Pinia
22 lines (20 loc) • 486 B
text/typescript
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react({
babel: {
presets: [["@babel/preset-react", { runtime: "automatic", importSource: "@emotion/react" }]],
plugins: ["@emotion/babel-plugin"],
babelrc: false,
configFile: false,
},
}),
],
resolve: {
alias: {
"@request": "../core/http/request.ts",
},
},
});