UNPKG

react-floating-profile

Version:

React component to display your github profile <p align="left"> <a href="https://www.npmjs.com/package/react-floating-profile"><img src="https://flat.badgen.net/npm/v/react-floating-profile" alt="react-floating-profile version" /></a> <a href="http

22 lines (21 loc) 776 B
import { defineConfig } from "vite"; // import react from "@vitejs/plugin-react"; import path from "path"; import tsconfigPaths from "vite-tsconfig-paths"; export default defineConfig({ plugins: [tsconfigPaths()], resolve: { alias: { "@context": path.resolve(__dirname, "src/lib/react-floating-profile/context"), "@api": path.resolve(__dirname, "src/lib/react-floating-profile/api"), "@types": path.resolve(__dirname, "src/lib/react-floating-profile/types"), "@util": path.resolve(__dirname, "src/lib/react-floating-profile/util"), "@components": path.resolve(__dirname, "src/lib/react-floating-profile/components"), }, }, build: { rollupOptions: { external: ["react", "react-dom"], }, }, });