Skip to content

Commit

Permalink
feature: #93 Reactの型定義をVite内のパッケージから参照できるようにする
Browse files Browse the repository at this point in the history
  • Loading branch information
MofuMofu2 committed Dec 31, 2023
1 parent 48def3c commit ee7f92e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/react-app-env.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/// <reference types="react-scripts" />
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
/// <reference types="vite/client" />
9 changes: 9 additions & 0 deletions src/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";

export default defineConfig({
server: {
open: true,
},
plugins: [react()],
});

0 comments on commit ee7f92e

Please sign in to comment.