We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0da5f7b + 3f290c1 commit a10c55cCopy full SHA for a10c55c
src/index.ts
@@ -58,11 +58,11 @@ function VitePlugin({ dir = process.cwd() }: VitePluginOptions = {}): Plugin[] {
58
alias: [
59
{
60
find: /^react$/,
61
- replacement: "next/dist/compiled/react",
+ replacement: require.resolve("next/dist/compiled/react"),
62
},
63
64
find: /^react-dom$/,
65
- replacement: "next/dist/compiled/react-dom",
+ replacement: require.resolve("next/dist/compiled/react-dom"),
66
67
68
find: /^react-dom\/server$/,
0 commit comments