Skip to content

Commit 4d2320d

Browse files
fix(example): dedupe
1 parent c6793d2 commit 4d2320d

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

example/vite.config.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { fileURLToPath, URL } from "node:url";
21
import { defineConfig } from "vite";
32
import react from "@vitejs/plugin-react";
43

@@ -7,10 +6,6 @@ export default defineConfig({
76
plugins: [react()],
87
base: "/react-fit-list/",
98
resolve: {
10-
alias: {
11-
"react-fit-list": fileURLToPath(
12-
new URL("../src/index.ts", import.meta.url)
13-
),
14-
},
9+
dedupe: ["react", "react-dom"],
1510
},
1611
});

0 commit comments

Comments
 (0)