mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
parent
563856f477
commit
193eaf4c9e
|
@ -3,7 +3,7 @@ const moduleAlias = require('module-alias')
|
|||
|
||||
// For the development version, we'll use React.
|
||||
// Because, it support react hot loading and so on.
|
||||
if (dev) {
|
||||
if (!dev) {
|
||||
moduleAlias.addAlias('react', 'preact-compat')
|
||||
moduleAlias.addAlias('react-dom', 'preact-compat')
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue