Skip to content

Commit b9385d9

Browse files
committed
fixup webpack resolution for demo site
1 parent f40e128 commit b9385d9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

demo/next.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ const path = require('path');
33
module.exports = {
44
webpack: config => {
55
config.resolve.alias['react-live'] = path.resolve('../');
6+
config.resolve.alias.react = path.resolve('./node_modules/react');
7+
config.resolve.alias['react-dom'] = path.resolve('./node_modules/react-dom');
68

79
return config;
810
}

0 commit comments

Comments
 (0)