mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Use the preact-compat dist version. (#760)
This commit is contained in:
parent
3b3353f821
commit
7be5797cc2
|
@ -1,8 +1,8 @@
|
|||
module.exports = {
|
||||
webpack: function (config) {
|
||||
config.resolve.alias = {
|
||||
'react': 'preact-compat',
|
||||
'react-dom': 'preact-compat'
|
||||
'react': 'preact-compat/dist/preact-compat',
|
||||
'react-dom': 'preact-compat/dist/preact-compat'
|
||||
}
|
||||
return config
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue