Skip to content

Commit 253b1b2

Browse files
committed
plugin: restore react & react-dom dedupe
While the tests pass after aligning react versions between docs/ and plugin/, the build still breaks at runtime without this.
1 parent a385178 commit 253b1b2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugin/vite.config.mts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ export default defineConfig({
6767
}),
6868
bundleAnalyzerPlugin(),
6969
],
70+
resolve: {
71+
dedupe: ["react", "react-dom"],
72+
},
7073
build: {
7174
// We aren't building a website, so we build in library mode
7275
// and bundle the output using our index.ts as the entrypoint.

0 commit comments

Comments
 (0)