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.
1 parent 563856f commit 193eaf4Copy full SHA for 193eaf4
examples/using-preact/server.js
@@ -3,7 +3,7 @@ const moduleAlias = require('module-alias')
3
4
// For the development version, we'll use React.
5
// Because, it support react hot loading and so on.
6
-if (dev) {
+if (!dev) {
7
moduleAlias.addAlias('react', 'preact-compat')
8
moduleAlias.addAlias('react-dom', 'preact-compat')
9
}
0 commit comments